赞
踩
f=open('/tmp/aa.txt','r',encoding='utf-8',error='ignore')
##with语句自动调用close()方法,尽量使用with模式
with open('/tmp/aa.txt','r') as f: print(f.read())