浮点数取余方法:x-(math.floor(x/y)*y) >>> import math>>> x=9.7;y=3.1>>> x-(math.floor (x/y)*y)0.3999999999999986 相关文章: 2022-12-23 2022-12-23 2022-12-23 2021-07-01 2021-12-03 2021-12-26 2021-07-01