abs( x )
x -- 這是一個數位表示式
#!/usr/bin/python3 print ("abs(-45) : ", abs(-45)) print ("abs(100.12) : ", abs(100.12))
abs(-45) : 45 abs(100.12) : 100.12