ex9.py

 #-*- coding:utf-8 -*-
days = "mon Tue Wed Thu Fri Sat Sun"
months = "Jan\vFeb\vMar\vApr\vMay\vJul\nJul\nAug"   
#开始熟悉转义序列的用法 这里用到的是\n ASCII 换行符 
#\v ASCII 垂直制表符
print ("here are the days: ", days)
print ("here are the months: ", months)

print ( """
 there's somthing 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.
 """)

 

posted @ 2016-11-15 13:36  听风呤  阅读(114)  评论(0编辑  收藏  举报