1、
OSError: [Errno 22] Invalid argument: ‘D:\test\x07’
转有时候在使用python的文件路径时,中间会包含python的转义字符,因此会报错
将转移\全部换为\即可
2、the filesize exceeds configured limit. code insight features are not available
3、第一步:win7——c
第二步:打开当前存储多个txt文件的文件夹 "cd 文件夹名
第三步:运行命令:type *.txt >>f:\1.txt (注意空格)
4、ValueError: invalid literal for int() with base 10: ‘-0.809326’
这两行读取转为int型,检查文件中是否有浮点数或者将期改为:x.append(int(float(row[0])))
5、Python读取excel报Unsupported format, or corrupt file: Expected BOF record; found b’
可能是文件格式不对,读取的并不是excel格式
6、python报"IndentationError: unexpected indent"的解决方法:python对于缩进非常敏感,所以检查一下报错位置的缩进