Python题解 | #字符逆序#

字符逆序

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

print(''.join(reversed(input())))

全部评论
字符串反转''.join(reversed(input())),,,列表反转list(reversed(input())),,元组反转tuple(reversed(input()))
点赞 回复 分享
发布于 2024-05-19 16:53 上海

相关推荐

2025-12-26 10:52
河北传媒学院 Java
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

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