摘要: 一、打开文件 1,import os context = "hello world! \n you are welecome !!!" 2,f = open('hello.txt','w',encoding= 'gbk') 3,f.write(context) 4,f.close() 二、文件读取 阅读全文
posted @ 2018-01-23 16:24 wayens 阅读(145) 评论(0) 推荐(0)