摘要: 文件的操作 # 文件的写入 # 1.打开文件 fp = open("ceshi1.txt",mode="w",encoding="utf-8") # 把冰箱门打开 # 2.写入内容 fp.write("把大象塞进去") # 把大象放进去 # 3.关闭文件 fp.close() # 把冰箱门关上 # 阅读全文
posted @ 2020-07-16 00:35 iR-Poke 阅读(178) 评论(0) 推荐(0) 编辑