摘要:
要求: 阅读全文
posted @ 2018-08-11 22:37
巨兽~墨菲特
阅读(193)
评论(0)
推荐(0)
摘要:
上下文管理器的任务是:代码块执行前准备,代码块执行后收拾 1、如何使用上下文管理器: 如何打开一个文件,并写入"hello world" 1 2 3 4 5 filename="my.txt" mode="w" f=open(filename,mode) f.write("hello world") 阅读全文
posted @ 2018-08-11 21:50
巨兽~墨菲特
阅读(309)
评论(0)
推荐(0)

浙公网安备 33010602011771号