错误信息:UnicodeDecodeError: 'gbk' codec can't decode byte 0x80 in position 134: illegal multibyte sequence
背景:Windows+pycharm+selenium+Python,UI自动化测试,Python引用json文件
原代码:file =open('testdata.json','r')
修改为:file =open('testdata.json','r',encoding='utf-8')