【发布时间】:2015-03-23 13:10:44
【问题描述】:
我想将一个函数的输出设置为另一个函数的输入, 像这样
def math(a,b):
some code...
return(a,b,c)
def pro(a,b,c):
some code
return(e)
#and then call function by:
pro(math(a,b))
然而,
TypeError: pro() 缺少 2 个必需的位置参数:'b' 和 'c'
你能告诉我如何更改我的代码吗?
【问题讨论】: