# Here's some new strange stuff, remember type it exactly.
days = "Mon Tue Wed Thu Fri Sat Sun"
months = "Jan\nFeb\nMar\nApr\nMay\nJun\nJul\nAug"
print "Here are the days: ", days
print "Here are the months: ", months
print "There's something going on here.With the three double-quotes.We'll be able to type as much as we like.Even 4 lines if we want, or 5, or 6."
print """
There's something going on here.
With the three double-quotes.
We'll be able to type as much as we like.
Even 4 lines if we want, or 5, or 6.
"""
书里,作者是红色字的写法。我很好奇为啥要加三个“
于是,自己改了写法,然后运行。
发现,如果想让这三句话分别在三行显示,那么就需要像作者那样写(红色字)。如果没有三个“,只在首尾各有一个,就会报错。
而我的那种写法(蓝色字),运行后,这三句话在同一行显示。