摘要: 当队列为空时,执行get(),不会报异常 会进入阻塞状态,直到队列中有东西可取为止 from queue import Queue taskQueue = Queue() taskQueue.put('queue task 1') print(f'队列长度:{taskQueue.qsize()}') 阅读全文
posted @ 2022-03-08 02:15 三个零 阅读(662) 评论(0) 推荐(0) 编辑