微信扫一扫
with open('test.txt',encoding='utf-8') as f: data = f.read() print(data)# with 语句块结束 f 对象会被自动销毁
相关推荐