Getting ready to convert from Python 2.x to 3.x

后端 未结 2 1247
青春惊慌失措
青春惊慌失措 2020-12-30 09:01

As we all know by now (I hope), Python 3 is slowly beginning to replace Python 2.x. Of course it will be many MANY years before most of the existing code is finally ported,

2条回答
  •  有刺的猬
    2020-12-30 09:26

    I'm trying to get in the habit of using things like var1//var2 whenever I actually want integer division (and not a float). Not a big step towards Python 3, but at least I won't have to go back and check all of my division :)

提交回复
热议问题