摘要: threading.local 多个线程修改同一个数据,复制多份变量给每个线程用,为每个线程开辟一块空间进行数据存储 不用threading.local # 不用local from threading import Thread import time lqz = -1 def task(arg) 阅读全文
posted @ 2019-11-13 20:29 Yzy~Yolo 阅读(127) 评论(0) 推荐(0) 编辑