摘要: 1.线程间的通信方式 1.共享全局变量 2.线程队列(queue) 3.信号量(Semaphore) 2.共享全局变量进行通信 from threading import Thread import time g_nums = [11,22,33] def work1(nums): nums.app 阅读全文
posted @ 2020-08-26 22:01 唐雪成 阅读(353) 评论(0) 推荐(0) 编辑