python3-abs()函数

abs(x, /)

Return the absolute value of the argument.
返回参数的绝对值。

>>
print(abs(-4))

>>结果:4

原文地址:https://www.cnblogs.com/a001ai-es/p/13616674.html