python-with open() as file相关参数以及常用打开方式
摘要:
with open() as file是由open()函数引申而来 fp = open("./aa.txt", "w+") fp.write("This is a text file.") fp.close() 上面是一个open()函数的例子,在用完之后必须关闭文件,否则就造成了系统资源的长期占用 阅读全文
posted @ 2020-02-15 23:08 宥宁 阅读(13688) 评论(0) 推荐(0) 编辑