课程
/后端开发
/Python
/初识Python
s='python was started in 1989 by'"Guido"'.\npython is free easy to learn' 怎么不对?
2016-11-08
源自:初识Python 3-5
正在回答
s = 'Python was started in 1989 by "Guido".\nPython is free and easy to learn.' 这个地方你的引号用得太多了,去掉单引号就好了.
转义符是\ ,反斜杠, 需要进行的转义的符号写在反斜杠的后面.
我觉得对于转义字符最好用反斜杠来表示吧,一般不会出错,用单双引号容易晕,以后学习深了在说吧,现在都用反斜杠
举报
学python入门视频教程,让你快速入门并能编写简单的Python程序