Type/to search
0
Follow
0
Followers
Estoy convencido de que el signo de división de Python es divisible por números enteros. Me llevó un año ajustarlo.
FAQ
Created 2017-05-31 15:27:34  
 4
 2665

¿Cuál es la versión de este intérprete de Python?
¿Y 1/2 es igual a 0?
Así que si lo escribo como 1/2, entonces es igual a 0.5.
En mi computadora hay un Python 3 que dice que 1/2 es igual a 0.5.
Me llamaron por la tarde y me perdieron el tiempo.

Related Recommendations
Comment
All comments (3)

    而且JavaScript小数相加还会出超小小数点。坑多的很

    9 years ago

    2333居然调整了一年,这不是常识么,1/2.0=0.5,加小数点才行

    9 years ago

    平台 默认的 python 版本是 2.7
    img
    1/2 确实是 计算为 0 的。

    9 years ago
  • 1
Forums
PINE Language
Get the app
iPhone Download
© 2015 - ∞ INVENTOR PTE LTD (SG)