题目:编写一个function,输入名字(string)和年龄(int),输出say_hi。
答案:
def say_hi(name,age):
return "Hi, my name is "+name+" and I'm "+str(age)+" years old."
题目:编写一个function,输入名字(string)和年龄(int),输出say_hi。
答案:
def say_hi(name,age):
return "Hi, my name is "+name+" and I'm "+str(age)+" years old."
本文标题:1\say_hi
本文链接:https://www.haomeiwen.com/subject/ejxcjftx.html
网友评论