2021年1月7日

with open 向文件的某一固定行,追加内容

摘要: with open(r"D:\RSU地图制作\1-南京\111111","r") as f: lines = f.readlines() lines.insert(3,"向第四行,加入的内容") s = "".join(lines) with open(r"D:\RSU地图制作\1-南京\11111 阅读全文

posted @ 2021-01-07 10:40 二十四岁半 阅读(436) 评论(0) 推荐(0)

导航