摘要: 1、线程之间资源共享和threading.local 代码: 1 from threading import local, Thread 2 3 4 i = None 5 6 7 def func(num): 8 global i 9 i = num 10 print(i) 11 12 13 thr 阅读全文
posted @ 2020-08-03 23:28 找回失去的自我 阅读(190) 评论(0) 推荐(0) 编辑