摘要: import oswith open("c",mode="r",encoding="utf-8") as f1 ,\ open("c_副本",mode="w",encoding="utf-8") as f2: for line in f1: f2.write(line.replace("alex", 阅读全文
posted @ 2019-06-22 16:31 冰灬荷 阅读(119) 评论(0) 推荐(0) 编辑
摘要: lst = []# sum = 0with open("a",mode="r",encoding="utf-8") as f: for line in f: dic = {} s = line.strip().split(" ") dic["name"] = s[0] dic["price"] = 阅读全文
posted @ 2019-06-22 15:39 冰灬荷 阅读(152) 评论(0) 推荐(0) 编辑