两个字符串没有做到换行
s = 'Python was started in 1989 by \"Guido\".\n','Python is free and easy to learn.'
print s
为什么这个语句的输出形式是这个
('Python was started in 1989 by "Guido".\n', 'Python is free and easy to learn.')
我的想法是输出两个字符串,第一个字符串打印之后用\n换行,不知道为什么却做不了
s = 'Python was started in 1989 by \"Guido\".\n','Python is free and easy to learn.'
print s
为什么这个语句的输出形式是这个
('Python was started in 1989 by "Guido".\n', 'Python is free and easy to learn.')
我的想法是输出两个字符串,第一个字符串打印之后用\n换行,不知道为什么却做不了
2016-07-04
举报