I have the following 2 generators:
a = 20
def function1():
coin = np.random.randint(0, 100)
a2= a+coin
yield a2
def function2():
yield a2
I want to pass a2
to function2
. How can I achieve this?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…