函数的输入上一个函数的输出怎么做

比如我这个有没有(>﹏<)错误呢…对程序不理解

img


这样写对吗……救命,好像没反应

return hand[words]

81行接收这个数据就可以了

return 结果给下一个调用

举个简单的例子帮你理解,你看看吧


def fun1(a):
    b = a+1
    return b
def fun2(n):
    m = n-1
    return m
x = 1
y = fun1(x)
z = fun2(y)