#-------------------------------------------------------------------------------
# Name: ex_09.py
# Purpose:
#
# Author: huanghuan
#
# Created: 14-08-2013
# Copyright: (c) huanghuan 2013
# Licence: <your licence>
#-------------------------------------------------------------------------------
days = "Mon Tue Wed Thu Fri Sat Sun"
months = "Jan\nFeb\nMar\nApr\nMay\nJun\nJul\nAug"
prx33
# 这里是逗号,而不是%号.逗号用于分割参数.
print "days: ", days
# 对比如下2条区别.
print "months: ", months
print "months: %r" % months
# 这里,进一步理解,逗号含义.连接成新串.
print "tom","jim","kitty"
# 3引号对.很特殊,改成2引号对,4引号对,都不行.
print """
There's something going on here.
with the three double-quotes.
we'll be able to type as much as we like.
"""
# 3个单引号对,效果相同.
print '''
There's something going on here.
with the three double-quotes.
we'll be able to type as much as we like.
'''