Division in python give wrong results

后端 未结 0 985
情书的邮戳
情书的邮戳 2021-02-05 12:24

I was just checking out python and I found a weird thing. See the code below

>>> 1/1
1.0
>>> 1/12
0.08333333333333333
>>> 1/123
0.00813         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题