比如图片中print(16*0.5)和print(56/7)的结果为8.0.
print({:.0f}.fromat(8*5.0))试试
在python3中,整数和浮点数进行运算,会先将整数转为浮点数,比如
16*0.5 == 16.0* 0.5 == 8.0
所以结果是一个浮点数