python2x和python3x的一些区别
python2x:各种按照自己代码习惯给python贡献源码
python3x:重写之后的源码,优美,清晰,简单
版本 | 打印函数 | rang函数 | 输入函数 |
python2x | print 或 print() | 列表[1,2,3] | raw_input(); input(数字) |
python3x | print() | 可迭代对象 | input() |
python2x:各种按照自己代码习惯给python贡献源码
python3x:重写之后的源码,优美,清晰,简单
版本 | 打印函数 | rang函数 | 输入函数 |
python2x | print 或 print() | 列表[1,2,3] | raw_input(); input(数字) |
python3x | print() | 可迭代对象 | input() |