随笔分类 -  Python

Python
摘要:python新建txt文件,并逐行写入数据 #coding=utf-8 txtName = "codingWord.txt" f=file(txtName, "a+") for i in range(1,100): if i % 2 == 0: new_context = "C++" + '\n' 阅读全文
posted @ 2019-03-02 18:33 wisli876 阅读(23062) 评论(0) 推荐(0)