题解 | #字符逆序#利用list(input())的特性,2行代码搞定

字符逆序

http://www.nowcoder.com/practice/cc57022cb4194697ac30bcb566aeb47b

```while True:
    try:
        s = list(input())
        print(''.join(s[::-1]))
    except:
        break
全部评论
为啥要转list呢?
点赞 回复 分享
发布于 2022-06-13 15:15

相关推荐

评论
2
1
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务