dx
dx copied to clipboard
运行会出现UnicodeDecodeError: 'gbk' codec can't decode byte 0x80 in position 6报错
修改config/confile.py 第152行:
with open(conf_file) as f:
import yaml
return yaml.safe_load(f.read())
修改为:
with open(conf_file, encoding="utf-8") as f:
import yaml
return yaml.safe_load(f.read())
好。我运行在linux,没用windows环境所以没发现。