with open('test.txt', 'w') as f:
f.write('test')
python使用with自动关闭资源
最新推荐文章于 2024-08-23 14:31:57 发布
with open('test.txt', 'w') as f:
f.write('test')