📅  最后修改于: 2022-03-11 15:04:35.949000             🧑  作者: Mango
import simpy
def example(env):
value = yield env.timeout(1, value=42)
print('now=%d, value=%d' % (env.now, value))
env = simpy.Environment()
p = env.process(example(env))
env.run()
#now=1, value=42