用简单的代码运行heatmap报错:
File "D:\installapp\Anaconda3\lib\site-packages\boxx\tool\toolSystem.py", line 242, in heatmap
code = f.read()
UnicodeDecodeError: 'gbk' codec can't decode byte 0xa5 in position 233: illegal multibyte sequence
将此行加上utf8读取则继续报错:
File "D:\installapp\Anaconda3\lib\site-packages\boxx\tool\toolSystem.py", line 243, in heatmap
code = code.decode('ascii','replace').replace('\ufffd','$?')
AttributeError: 'str' object has no attribute 'decode'
用简单的代码运行heatmap报错: File "D:\installapp\Anaconda3\lib\site-packages\boxx\tool\toolSystem.py", line 242, in heatmap code = f.read() UnicodeDecodeError: 'gbk' codec can't decode byte 0xa5 in position 233: illegal multibyte sequence 将此行加上utf8读取则继续报错: File "D:\installapp\Anaconda3\lib\site-packages\boxx\tool\toolSystem.py", line 243, in heatmap code = code.decode('ascii','replace').replace('\ufffd','$?') AttributeError: 'str' object has no attribute 'decode'