python3-abs()函数

abs(x, /)

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

>>
print(abs(-4))

>>结果:4

posted @ 2020-09-04 23:19  大序列  阅读(235)  评论(0)    收藏  举报