错误及解决方法
文章平均质量分 77
jing16337305
DGHJ
展开
-
解决:numpy frombuffer - AttributeError: 'str' object has no attribute '__buffer__'
错误:Python Version: 3.5.2 Numpy Version : 1.12.1Error:import numpy as nps = 'Hello World'np.frombuffer(s, dtype='S1')AttributeError: 'str' object has no attribute '__buffer__'Things Tried:Tried Onli...原创 2018-05-17 15:24:15 · 12153 阅读 · 0 评论 -
'gbk' codec can't encode character解决方法
'gbk' codec can't encode character解决方法转载自:https://www.cnblogs.com/themost/p/6603409.html使用Python写文件的时候,或者将网络数据流写入到本地文件的时候,大部分情况下会遇到:UnicodeEncodeError: 'gbk' codec can't encode character '\xa0' in...转载 2018-09-04 10:02:58 · 2203 阅读 · 0 评论