摘要:
import csv # 写数据 with open("data.csv","w",encoding="utf-8",newline="") as f: w = csv.writer(f) w.writerow(["id","name","mobile"]) w.writerow(["1001"," 阅读全文
摘要:
# 线程,进程 # 线程:是执行单位 # 进程:资源单位,一个进程至少有一个线程 from threading import Thread def func(): for i in range(1000): print("子线程",i) if __name__ == "__main__": t = 阅读全文