python第一天

来源:互联网 发布:java自动生成代码软件 编辑:程序博客网 时间:2024/05/16 17:20

取绝对值

#print absolute value  of an integer
a=input()
b=input()
c=a-b
if  c >0:
print c
else :
    print  -c


0 0
原创粉丝点击