Chinaunix
标题:
求助,关于Queue问题
[打印本页]
作者:
xiaoqi8866
时间:
2013-01-17 13:17
标题:
求助,关于Queue问题
请教各位,我现在碰见的问题,是当queue里的任务,不能乘除进程的时候,出现挂起情况。
while True:
if not mission_list.empty():
for i in range(4):
print mission_list.get()
else:
break
复制代码
while not mission_list.empty():
for i in range(4):
print mission_list.get()
复制代码
以上两段代码中如果将range(1) 改成1 是没有问题的。或是成能够乘除的数也是没问题的 。
请问各位这是为什么 ?
欢迎光临 Chinaunix (http://bbs.chinaunix.net/)
Powered by Discuz! X3.2