Discuss / Python / 【send的承上启下功能】

【send的承上启下功能】

Topic source

hi4gf

#1 Created at ... [Delete] [Delete and Lock User]
【send的承上启下功能】
send(msg) 每次执行时: 
先把(msg)赋值给当前的(yield x1) : (yield x1)=msg 
然后顺序执行到下一次的 (yield x2)处 
将此处yield的参数x2返回赋值给send(msg): send(msg)=x2

  • 1

Reply