标签:pytho rom test let port switch import greenlet pre
from greenlet import greenlet
def test1():
print("a")
gr2.switch()
print("b")
gr2.switch()
def test2():
print("c")
gr1.switch()
print("d")
gr1 = greenlet(test1)
gr2=greenlet(test2)
gr1.switch()
标签:pytho rom test let port switch import greenlet pre
原文地址:http://www.cnblogs.com/xiesongyou/p/7749587.html