题解 | #数字颠倒#
数字颠倒
https://www.nowcoder.com/practice/ae809795fca34687a48b172186e3dafe
ent = input()
ent = int(ent)
if ent < 0:
    print("错误!输入整数为负数。")
else:
    out = str(ent)
    out = out[::-1]
    print(out)
数字颠倒
https://www.nowcoder.com/practice/ae809795fca34687a48b172186e3dafe
ent = input()
ent = int(ent)
if ent < 0:
    print("错误!输入整数为负数。")
else:
    out = str(ent)
    out = out[::-1]
    print(out)
相关推荐