Надеюсь, что это может помочь кому-то мгновенно.
В Python 2.7: По умолчанию оператор разделения возвращает целочисленный вывод .
blockquote>, чтобы получить результат в double multiple 1.0 для «divend или divisor»
100/35 => 2 #(Expected is 2.857142857142857) (100*1.0)/35 => 2.857142857142857 100/(35*1.0) => 2.857142857142857
В Python 3
blockquote>// => used for integer output / => used for double output 100/35 => 2.857142857142857 100//35 => 2 100.//35 => 2.0 # floating-point result if divsor or dividend real