up votedown voteaccepted | In Python 3.0, In Python 2.2 or later in the 2.x line, there is no difference for integers unless you perform a Regardless of the future import, You can find a detailed description at https://docs.python.org/whatsnew/2.2.html#pep-238-changing-the-division-operator It helps to clarify for the Python 2.x line, The above tells a lot more truth, and is a lot more clearer than the 2nd paragraph in the accepted answer. from: http://stackoverflow.com/questions/183853/in-python-2-what-is-the-difference-between-and-when-used-for-division |
新闻热点
疑难解答