aaa = 0.5+0.2+0.1aaa_str = str(aaa)bbb = 0.5+0.21+0.11bbb_str = str(bbb)print (aaa_str)print (bbb_str)
print (aaa_str)为什么不是0.8?
没有特殊设置,Python默认会输出17位精度的小数