题解 | #字符串反转#
字符串反转
http://www.nowcoder.com/practice/e45e078701ab4e4cb49393ae30f1bb04
直接用reversed函数获得翻转序列并遍历打印
for word in reversed(input()):
print(word, end='')
字符串反转
http://www.nowcoder.com/practice/e45e078701ab4e4cb49393ae30f1bb04
直接用reversed函数获得翻转序列并遍历打印
for word in reversed(input()):
print(word, end='')
相关推荐