#coding:utf-8

# python 2.7中以下三种形式是等价的
# # print "fish"
# # print ("fish") #注意print后面有个空格
# # print("fish") #print()不能带有任何其它参数

# 对于python3，只支持print函数
# # print("I is yu")

# this is viable only in python3
# # >>> 中国 = 'china' 
# # >>>print(中国) 
# # china

# 对比在py2和py3下的字符串表示
# # >>> str = u"我爱北京天安门"
# # >>> str
# # u'\u6211\u7231\u5317\u4eac\u5929\u5b89\u95e8'#python2

# # >>> str = "我爱北京天安门"
# # >>> str
# # '我爱北京天安门'#python3

# python2
# # >>> 1 / 2
# # 0
# # >>> 1.0 / 2.0
# # 0.5
# python3
# # >>> 1/2
# # 0.5

# i = 1
# print('before: i =', i)
 
# print('comprehension:', [i for i in range(5)])
 
# print('after: i =', i)

