greenlet实现协程 from greenlet import greenletdef test1(): print(12) gr2.switch() # 2.jumps to test2,print 56 print(34)def test2(): ...