题解 | #字符串反转#
字符串反转
https://www.nowcoder.com/practice/e45e078701ab4e4cb49393ae30f1bb04
str_input = list(input()) list1 = str_input[::-1] print(''.join(map(str,list1)))
字符串转列表,倒序读取索引,join元素输出
字符串反转
https://www.nowcoder.com/practice/e45e078701ab4e4cb49393ae30f1bb04
str_input = list(input()) list1 = str_input[::-1] print(''.join(map(str,list1)))
字符串转列表,倒序读取索引,join元素输出
相关推荐