编辑代码
Python代码
3.11.0
2.7.17
运行
# coding:utf-8
n=input(
"求绝对值,请输入一个整数: "
) n=
int
(n)
if
n>=
0
:
print
(n)
else
:
print
(-n)