文件操作报错:UnicodeDecodeError: 'gbk' 2021-03-29 本文已影响0人 sai德很黑 读取文件时报错: image.png 原因:读取文件中含有中文 解决:加上encoding='utf-8' image.png