greenlet手动切换协程 from greenlet import greenlet def tes_1(): print(12)
1.gevent执行 import gevent def func1(): print('func1 start') gevent.sleep(2) print('func1