with file的用法 ... 有两种使用with语句操作文件的方式,使用with语句的目的是不用自己写close。 >>> with open('tw.txt', 'w') as f: ... f.write('hahaha ...
確定! 回上一頁