想请教一下这个问题应该如何修改才能让它运行出来?请教各位,谢谢!
收起
文件中带中文,都是编码的问题,加encoding
open('test.txt', 'r',encoding='utf-8')
报告相同问题?