You are viewing a single comment's thread from:RE: python 读文件报错View the full contexttengyue (27)in #python • 6 years ago 这样写也行: with open('C:/Users/tengy/Desktop/aaa.txt',encoding='UTF-8') as f: print(f.read())