a = abs(int(input())) g = a%10 b = a//100 s = (a - 100b)//10 print(100g + 10*s + b)
讨论区直接写代码会排版出错,建议了解一下 markdown 排版语法
。゚・ (⁄ ⁄>⁄ ︿ ⁄<⁄ ⁄) ・゚。
参见