题解 | #字符逆序#利用list(input())的特性,2行代码搞定
字符逆序
http://www.nowcoder.com/practice/cc57022cb4194697ac30bcb566aeb47b
```while True:
try:
s = list(input())
print(''.join(s[::-1]))
except:
break
字符逆序
http://www.nowcoder.com/practice/cc57022cb4194697ac30bcb566aeb47b
```while True:
try:
s = list(input())
print(''.join(s[::-1]))
except:
break
相关推荐