with open(name+'.txt','w') as f:
写with的好处:
with下面可以写好多代码,如果其中一行代码出错,则会自动跳出关闭保存。
群1:897428979
群2:642795722
工作时间:9:00 - 18:00
张老师:18927565259
邮箱: 3120701392@qq.com