该文被密码保护。 阅读全文
posted @ 2020-06-07 16:32 牛公的跑奔 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 其中,put和get函数都一个block参数,默认为ture。表示如果队列中为满或者空,那么就会一直阻塞,直到队列可操作。 1 import threading,time 2 from queue import Queue 3 4 def set_value(q): 5 index = 0 6 wh 阅读全文
posted @ 2020-06-07 14:53 牛公的跑奔 阅读(481) 评论(0) 推荐(0) 编辑
摘要: 1 import threading 2 import time 3 def coding(): 4 for i in range(3): 5 print('输入代码%s' %i) 6 time.sleep(1) 7 def drawing(): 8 for i in range(3): 9 pri 阅读全文
posted @ 2020-06-07 11:31 牛公的跑奔 阅读(126) 评论(0) 推荐(0) 编辑
总访问量:AmazingCounters.com