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