python2X:源码重复不规范
python3X:整合源码,更清晰简单优美。
    
    
python2X:默认的编码是ascii  (解决办法为第一行添加 :  #-*- encoding:utf-8 -*-   来指定编码格式为uft-8)    
python3X:默认的编码是utf-8
    
python2X:有long(长整型)
python3X:无long
    
python2X:print 'abc'  print('abc')  两种格式都可以
python3X:只能为 print('abc')
    
 python2X:raw_input()
              input() 只能输入数字类型
python3X:input() 数字类型和字符串类型均支持输入

相关文章:

  • 2021-11-02
  • 2021-07-31
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-04-08
  • 2021-06-16
  • 2022-02-10
猜你喜欢
  • 2022-12-23
  • 2022-02-02
  • 2021-12-26
  • 2022-02-14
  • 2021-07-29
  • 2022-12-23
  • 2021-05-10
相关资源
相似解决方案