__init__(a) #无参数调用super()
3.8 改变了顺序操作符的行为,例如x<y,当x和y类型不匹配时抛出
TypeError而不是返回随即的bool值
#python2
>>> 2<"4..."
True
#python3
>>> 2<"4"
Traceback (most recent call last):
File "", line 1, in
TypeError...>>> 0666
File "", line 1
0666
^
SyntaxError: invalid token
>>> 0o666
438
4.字符串和字节串...python2:字符串以8-bit字符串存储
python3:字符串以16-bit Unicode字符串存储,
现在字符串只有str一种类型
5.数据类型
5.1 Py3.x去除了long类型,现在只有一种类型...,必须显调用
#python2
>>> list(xrange(5))
[0, 1, 2, 3, 4]
#python3
>>> list(range(5))
[0, 1, 2, 3, 4]
8.2