python 创建txt并且写入做追加
摘要:
import os def create_str_to_txt(self,date,str_data): """ 创建txt,并且写入 """ path_file_name = './report/action_{}.txt'.format(date) if not os.path.exists(path_file_name): with ... 阅读全文
posted @ 2018-04-10 16:42 星河赵 阅读(15152) 评论(0) 推荐(1) 编辑