摘要:
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", 阅读全文
摘要:
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"] = 阅读全文