很抱歉,这里要贴代码了:
执行结果:
[mz@mz python]$ python queue.py
0: Looking for the next enclosure
1: Looking for the next enclosure
*** Main thread waiting
*** Done
这是正常的,有时候结果是这样的:
[mz@mz python]$ python queue.py
0: Looking for the next enclosure
1: Looking for the next enclosure
第二种情况,为啥1前面有个空格阿?不改代码的情况下会出现第一种结果
执行结果:
[mz@mz python]$ python queue.py
0: Looking for the next enclosure
1: Looking for the next enclosure
*** Main thread waiting
*** Done
这是正常的,有时候结果是这样的:
[mz@mz python]$ python queue.py
0: Looking for the next enclosure
1: Looking for the next enclosure
第二种情况,为啥1前面有个空格阿?不改代码的情况下会出现第一种结果