- 博客(43)
- 问答 (1)
- 收藏
- 关注
原创 Server is already running from different workspace.
vscode使用Open with Live Server时,跳出Server is already running from different workspace.右击又没有stop live server.解决办法:先Alt+L 然后 Alt+C
2022-12-25 22:41:02
944
原创 for循环中遍历小数(i取0.1、0.2等)
使用 for i in range(0.1,0.5,0.2)会报错,因为range中只能用整数。解决:import numpy as nfor i in np.arange(0.1,0.5,0.2)
2022-12-03 14:45:45
3074
原创 VScode编程突然出现Non-UTF-8 code starting with ‘\xb3‘ in file...
解决VScode编程突然出现Non-UTF-8 code starting with '\xb3' in file...
2022-12-02 09:33:17
2093
3
原创 【Arcgis】Extract by Mask时出错,ERROR 999999
【Arcgis】Extract by Mask时出错,ERROR 999999。是因为掩膜超出了被裁减图像的范围。
2022-11-17 16:31:42
4876
2
原创 Python生成随机整数(1个、n个、指定步长、不重复)
python生成随机数,选择生成【1个或n个】,指定生成【范围和步长】,产生【不重复】随机数
2022-11-04 12:27:10
30168
1
原创 【PyQt5】tableWidget水平表头不显示、设置和缺省问题
问题1:无法显示水平表头解决:在前面添加self.tableWidget.setColumnCount(n)问题2:tableWidget表格内容无法显示解决:表格的输入需要是字符串格式,如果是处理数据并显示,有可能是输入了浮点数而无法显示。...
2022-06-15 23:56:22
3225
原创 【PyQt5】QLabel之setText文本无法完全显示问题
问题:setText无法让文字完全显示出来修改1:在后面添加一行label1.adjustSize()修改2:设置标签的大小label1.resize(x,y)
2022-06-15 16:16:46
3486
原创 Matlab报错——数组索引必须为正整数或逻辑值
使用min函数时报错数组索引必须为正整数或逻辑值解决方法:重启matlab,或clear all
2022-05-12 21:44:13
9595
原创 【matlab】随机函数生成随机排列:rand,randn,randi,randperm,randint
matlab几个生成随机序列的函数,rand,randn,randi,randperm,randint
2022-05-05 23:25:35
6504
原创 Jupyter Notebook报错:IOPub data rate exceeded解决办法
juypter notebook提醒IOPub data rate exceeded.The notebook server will temporarily stop sending outputto the client in order to avoid crashing it.
2022-04-27 22:56:40
21348
11
原创 anaconda安装gdal、Fiona、shapely、pyproj、geopandas
安装geopandas需要先安装 gdal、Fiona、shapely、pyproj包,而 Fiona 依赖 gdal 包。因此安装顺序为:gdal > Fiona > shapely > pyproj > geopandas目录1. 安装gdal和Fiona2.安装shapely3.安装pyproj4.安装geopandas1. 安装gdal和Fiona查阅资料得知:最好通过下载wheel文件(编译发布的.whl包)进行安装,因为用源码发布的.
2022-04-14 22:38:18
12705
12
原创 【pandas】4.创建DataFrame对象
import numpy as npimport pandas as pd#pandas.DataFrame(data=None,index=None,columns=None)1.通过二维数组创建df=pd.DataFrame(np.array([[1,2,3],[4,5,6]]),index=['L1','L2'],columns=['a','b','c'])print(df)>>> a b c L1 1 2 3 L2 4 5.
2022-04-13 19:33:37
2249
原创 【pandas】3.维护Series对象
目录1.修改元素值2.合并(添加)元素值3.删除元素import numpy as npimport pandas as pds=pd.Series({'考号':'10182156','姓名':'王小丫','科目一':97,'科目二':85})print(s)>>> 考号 10182188 姓名 王小丫 科目一 97 科目二 85 dtype: object
2022-04-08 22:44:53
541
原创 【pandas】2.Series元素的访问
目录1.按索引号(位置)访问2.按索引名访问3.按条件访问(条件表达式)import numpy as npimport pandas as pds=pd.Series({'考号':'10182156','姓名':'王小丫','科目一':'97','科目二':'85'})print(s)>>> 考号 10182156 姓名 王小丫 科目一 97 科目二 85 dtype
2022-04-07 15:05:40
1627
2021年第十届全国大学生GIS应用技能大赛(上午+下午)【试题+数据+参考结果】
2022-10-04
ArcGIS修改属性表,输入中文出现乱码
2022-03-23
TA创建的收藏夹 TA关注的收藏夹
TA关注的人