<分区> 分区>
Possible Duplicate:
Why doesn't this division work in python?
我遇到的一个简单问题(我认为)以下陈述:
print (4950*8)/(((4950*8)/10000000*(1538/1460))+0.1/1000)/1000
给我 396000.0。
但是在计算器上我得到 9270.614192621。
如果有人能指出我在代码中做错了什么,那就太好了。
谢谢。
<分区> 分区>
Possible Duplicate:
Why doesn't this division work in python?
我遇到的一个简单问题(我认为)以下陈述:
print (4950*8)/(((4950*8)/10000000*(1538/1460))+0.1/1000)/1000
给我 396000.0。
但是在计算器上我得到 9270.614192621。
如果有人能指出我在代码中做错了什么,那就太好了。
谢谢。