f=open("new.txt","w")
print(f.closed)
f.write("hello")
f.close()
print?f.closed
with?open("new1.txt","w")as?g:#上下文管理器?with?as
print(g.closed)
g.write("hello,world!")
print?(g.closed)
VS2017開發(fā)python出現(xiàn)keyError怎么解決
白白凈凈叫大星_03418722
2017-08-08 11:08:29