【发布时间】:2013-09-03 20:55:01
【问题描述】:
编写一个名为 Introduction(name, school) 的函数,该函数将名称(作为字符串)和学校作为输入,并返回以下文本:“Hello.我的名字是名字。我一直想上学。”
这是我的代码
def introduction("name","school"):
return ("Hello. My name is ") + str(name) + (". I have always wanted to go to The") + str(school) + (".")
我收到此错误:
Traceback (most recent call last):
File "None", line 5, in <module>
invalid syntax: None, line 5, pos 23
【问题讨论】: