exercise9

days = "Mon Tue Wed Thu Fri Sat Sun"
months = "Jan\nFeb\nMar\nApr\nMay\nJun\nJul\nAug"

\n 表示回車 就是新一行
\\表示一個反斜槓符號--轉義序列

print "Here are the days: ", days # print語句和顯示的變量之間有“,”號 exercise3中也有類似語句,但沒注意過
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.
"""
# 三個雙引號表示可以顯示多行
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章