with open('test.txt', 'w') as f:
f.write('test')
python使用with自动关闭资源
最新推荐文章于 2023-08-21 10:19:47 发布
with open('test.txt', 'w') as f:
f.write('test')