2017年2月22日
摘要: path='C:/'+name+'.txt' message='Hello world!' file = open(path,'w')其中'w'参数表示为写入模式,意思是:如果没有就在该路径创建一个有该名称文本,有则追加覆盖文本内容;file.write(message) 阅读全文
posted @ 2017-02-22 10:55 ALT_LB 阅读(3083) 评论(0) 推荐(0)