这里学到了新的,长段的文字打印方法
先看代码
# 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" #每一个\n都是换行,Jan前面也可以加上
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方便多了
最后看到的结果是这样的
===============================================================================
附加练习
1犯的错误
主要是中文逗号和英文逗号不通用,打错了