摘要: Python 报错:ValueError: binary mode doesn't take an encoding argument 在运行文件操作相关功能时报错:ValueError: binary mode doesn't take an encoding argument 上代码: 原因分析 阅读全文
posted @ 2018-10-22 22:06 翻滚的小强 阅读(61403) 评论(0) 推荐(1) 编辑
摘要: Python 报错:EOFError: Ran out of input 在运行序列化(pickle)相关功能时报错:EOFError: Ran out of input 上代码: 原因分析:要用文件操作模式打开文件 解决: 改成如下方法即可 阅读全文
posted @ 2018-10-22 21:47 翻滚的小强 阅读(38224) 评论(0) 推荐(0) 编辑
摘要: Python 报错:UnicodeDecodeError: 'gbk' codec can't decode byte 0x80 in position 0: illegal multibyte sequence 在运行序列化(pickle)相关功能时报错:UnicodeDecodeError: ' 阅读全文
posted @ 2018-10-22 21:41 翻滚的小强 阅读(23223) 评论(0) 推荐(1) 编辑
摘要: Python 报错:TypeError: file must have 'read' and 'readline' attributes 在运行序列化(pickle)相关功能时报错:TypeError: file must have 'read' and 'readline' attributes 阅读全文
posted @ 2018-10-22 21:34 翻滚的小强 阅读(8146) 评论(0) 推荐(0) 编辑