- 博客(3)
- 资源 (10)
- 收藏
- 关注
原创 scv文件单元格内存在换行符
scv文件单元格内存在换行符 错误代码: for i in range(4): path = "E:\\hanjia\\shiyansuodeshuju\\1\\data" + str(i+1) + ".csv" # 分时间段计算载客数量 for line in open(path): 导致读取数据出现异常,一行数据读取成了三行 正确代码 with open (path,'rt') as csvfile: reader=
2020-05-14 16:34:18
445
原创 _csv.Error: iterator should return strings, not bytes (did you open the file
_csv.Error: iterator should return strings, not bytes (did you open the file python 读取csv文件问题 with open (path,'rb') as csvfile: reader=csv.reader(csvfile,delimiter=',',quotechar='"',doublequote=False) for row in reader: 运行程
2020-05-14 15:55:14
2265
1
原创 Ubuntu18.04修改ens32为eth0
Ubuntu18.04修改ens32为eth0 修改grub文件 sudo gedit /etc/default/grub 查找 GRUB_CMDLINE_LINUX=" " 修改为 GRUB_CMDLINE_LINUX=" net.ifnames=0 biosdevname=0" 保存后退出。 重新生成grub引导配置文件 sudo grub-mkconfig -o /boot/grub...
2019-03-12 22:01:08
2443
1
第六次人口普查2010年11月1日.rar
2020-06-16
TA创建的收藏夹 TA关注的收藏夹
TA关注的人