课程
/后端开发
/Python
/初识Python
Python was stared in 1989 by "Guido".\nPython is free and easy to learn.
2018-07-14
源自:初识Python 3-5
正在回答
把print语句两边的括号去掉试试
你需要打印的是一段字符串,首尾应该需要加''或者""(注:使用""时,因文中有两个双引号,应把文中两个双引号前加\转义,打印时表示其本身,不代表字符串的起始)
另:字符串中stared与要求打印单词不符,应改为started
如下,两种例句选一种即可
'Python was started in 1989 by "Guido".\nPython is free and easy to learn.'
"Python was started in 1989 by \"Guido\".\nPython is free and easy to learn."
不用换行提示错误时,他是一行的
s = 'Python was started in 1989 by "Guido".\nPython is free and easy to learn.'
print (s)
我没有加'\n',然后,通过了。。。
提交之后它提示的那句话和任务中的那句话有出入,Python和Guido在任务里首字母是的大写,但在报错提示里是小写
加一个括号试试
print("Python was started in 1989 by \"Guido\".\nPython is free and easy to learn.")
这样呢?
举报
学python入门视频教程,让你快速入门并能编写简单的Python程序