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()函数的“地址”,有人可以帮帮我吗?
答案 0 :(得分:0)
在return
语句后,程序将保留函数,因此不会执行第二个return
。