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