在importreftest.py在
import importreftest2
import Queue
import threading
q= Queue.Queue(maxsize=0)
q.put(1)
q.put(2)
q.put("hello")
print "here"
t = threading.Thread(target = importreftest2.trythis, args = q)
t.start()
在importreftest2.py中
^{pr2}$跑步时importreftest.py“trythis”没有打印,队列中也没有任何内容
目前没有回答
相关问题 更多 >
编程相关推荐