如何在另一个函数上获取函数参数?

时间:2017-10-31 11:28:39

标签: python function python-3.5

def info(name, address):

    name = (input ("Please Enter Your Name : "))
    address = (input ("Please Enter Your Address : "))


    return name
    return address



def userinfo():

    sumom=info(name='', address='')

    print("Thank you for coming Mr. "+sumom)
userinfo()

Hello Folks!  问题是这里只有“name”是打印而不是userinfo()函数的“地址”,有人可以帮帮我吗?

1 个答案:

答案 0 :(得分:0)

return语句后,程序将保留函数,因此不会执行第二个return