题解 | 反向输出一个四位数
反向输出一个四位数
https://www.nowcoder.com/practice/1f7c1d67446e4361bf4af67c08e0b8b0
x = input() print(x[::-1])//切片操作只能对字符串、列表等使用,不能对int使用
反向输出一个四位数
https://www.nowcoder.com/practice/1f7c1d67446e4361bf4af67c08e0b8b0
x = input() print(x[::-1])//切片操作只能对字符串、列表等使用,不能对int使用
相关推荐