课程
/后端开发
/Python
/初识Python
s = 'Python was started in 1989 by \"Guido\".
Python is free and easy to learn.'
print s
2018-07-19
源自:初识Python 3-5
正在回答
不是空行的问题,多行字符串用'''...'''表示,如3.6版本中(输出多了个括号)
'''...'''
s = '''Python was started in 1989 by \"Guido\".
Python is free and easy to learn.'''
print (s)
芃芃其麥 提问者
'Python was started in 1989 by \"Guido\".\n\nPython is free and easy to learn.' 这样写 就可以空行了
你这是多行的字符串,需要用''' ''' 来表示多行
python对格式要求满严格的
举报
学python入门视频教程,让你快速入门并能编写简单的Python程序