题解 | #数字颠倒#
数字颠倒
http://www.nowcoder.com/practice/ae809795fca34687a48b172186e3dafe
input获取的字符串均为string,直接逆序翻转后遍历打印
for v in reversed(input()):
print(v, end='')
数字颠倒
http://www.nowcoder.com/practice/ae809795fca34687a48b172186e3dafe
input获取的字符串均为string,直接逆序翻转后遍历打印
for v in reversed(input()):
print(v, end='')
相关推荐