######读取本地文件报错
f = open('file.txt','r') da = f.read() print(da
收起
设置编码就行了
f = open('file.txt','r',encoding='utf-8')
报告相同问题?