我想从浮点数中删除数字,使点后面有一个固定的位数,如:
1.923328437452 -> 1.923
我需要将字符串输出到另一个函数,而不是打印.
此外,我想忽略丢失的数字,而不是围绕它们.
python floating-point
floating-point ×1
python ×1