|
python2
|
python3
|
默认编码
|
ascii
|
utf-8
|
input()
|
raw_input()
|
input()
|
print
|
可以不加()
|
必须加()
|
range
|
有xrange
|
只有range
|
编码 |
英文
|
中文
|
ascii
|
1个字节(1byte)
|
无
|
unicode
|
4个字节
|
4个字节
|
utf-8
|
1个字节
|
3个字节
|
gbk
|
1个字节
|
2个字节
|
原文:https://www.cnblogs.com/wt7018/p/10802502.html