W3School TIY Editor

  • W3School 在线教程
  • 改变方向
  • 暗黑模式
​x
 
# 导入数学库
import math
​
# 移除给定数值的负号(返回绝对值)
print(math.fabs(-66.43))
print(math.fabs(-7))