python 浮点数取绝对值时间:2023-03-09 08:38:17 import math print(math.fabs(-2.1)) print(math.fabs(-0.0)) print(math.fabs(10.1)) print(math.fabs(0.0))