>>> 100**0.5 != 4+6 False >>> 100**0.5 == 4+6 True >>> 4+6 10 >>> 100**0.5 10.0 >>> 10.0==10 True
谁可以告诉我为什么10.0==10是True?我认为10.0是a float和10是int,我知道在java中他们不相等.
10.0==10
True
float
int
python
python ×1