课程
/后端开发
/Python
/初识Python
\n 表示换行\t 表示一个制表符\\ 表示 \ 字符本身
2020-06-17
源自:初识Python 3-5
正在回答
s='Python was stared in 1989 by \"Guido\".\nPython is free and easy to learn.' print s
对比下面两个的输出
s = 'Python was started in 1989 by \"Guido\".Python is free and easy to learn.'
print s
\n换行
s = 'Python was started in 1989 by \"Guido\".\nPython is free and easy to learn.'
在你想要换行的地方插入\n
随便用
举报
学python入门视频教程,让你快速入门并能编写简单的Python程序