Writing Python 2.7 code that is as close to Python 3.x syntax as possible

前端 未结 7 727
情深已故
情深已故 2020-12-23 02:29

Since Django doesn\'t yet support Python 3.x, I\'m using Python 2.7. However, I\'d like to go ahead and start familiarizing myself with the new Python 3.x syntax as much as

相关标签:
7条回答
  • 2020-12-23 03:10

    Avoing range() and zip(), using xrange() and itertools.izip() instead.

    0 讨论(0)
提交回复
热议问题