Typically, the "/" arithmetic operator is calculated based on the data on either side of the participating operation, such as:
6/3 = 2; 6,3 are integers, then the result is an integer 2;
6.0/3.0 = 2.0; 6.0,3.0 is a floating-point number, then the result is also floating point 2.0, with the exact point, as long as "/" on both sides of a count is a floating point, then the result is a floating point.
This was also stated before in the Python2.2 version, but Python's designers did not consider this to be a straightforward feature of Python, and thus added an arithmetic operator "//" to represent integer division in Python2.2 and later versions. Returns a maximum integer that is not greater than the result, while "/" is purely a representation of floating-point division, but, in order to compromise, all 2. x version, also for backwards compatibility, if you want to use "//", you must add a statement:
From __future__ Import Division
When you see this, "/" means floating-point division, which returns floating-point results; "//" represents integer division.
However, when the Python3.0 is released, there is no such compromise, "/" must indicate floating-point division, return floating-point results; "//" denotes integer division.
The/and/arithmetic operators in Python