0
import threading,gevent,gevent.monkey
class test(threading.Thread):
def __init__(self):
threading.Thread.__init__(self)
def run(self):
print 1
gevent.sleep(2)
print 2
gevent.monkey.patch_thread()
t=test()
t.start()
爲什麼'print 2'不能運行,該怎麼辦?gevent的python線程?
如果要下載文件,多線程和gevent,哪個更快?