理解并掌握:文件写入。本课不是占位内容,示例和练习都围绕这个知识点。
with open('demo.txt','w',encoding='utf-8') as f: f.write('hello')
请根据本课知识,自己写一段包含检查点的代码。
检查点:with, open, 文件