python 浮点数取绝对值

import math  
  
print(math.fabs(-2.1))  
print(math.fabs(-0.0))  
print(math.fabs(10.1))  
print(math.fabs(0.0))
原文地址:https://www.cnblogs.com/sea-stream/p/9966056.html