python习题9

 1 # Here's some new strange stuff,remember type it exactly.
 2 
 3 days = "Mon Tue Wed Thu Fri Sat Sun"
 4 # \n:换行符号
 5 months = "Jan\nFeb\nMar\nApr\nMay\nJun\nJul\nAug"
 6 
 7 print("Here are the days:",days)
 8 print("Here are the months:",months)
 9 
10 # """........"""换行符
11 print("""
12 There's something going on here.
13 With the three double-quotes.
14 We'll be able to type as much as we like.
15 Even 4 lines if we want,or 5,or 6.
16 """)

* \n:换行

* """......."""换行

posted @ 2018-11-15 17:53  yuriya  阅读(175)  评论(0)    收藏  举报