Python 3.12.1 (tags/v3.12.1:2305ca5, Dec 7 2023, 22:03:25) [MSC v.1937 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license()" for more information.
123456789/987654321(整数运算非常准确)
0.1249999988609375
6/2
3.0
0.1+0.2
0.30000000000000004(但是小数运算不准确,因为小数以浮点数形式存放,需要用到decimal模块)
i=0
while i<1:
i=i+0.1
print(i)