字符串反转 ''.join(reversed('str'))
字符串反转
https://www.nowcoder.com/practice/e45e078701ab4e4cb49393ae30f1bb04
''' string=input()[::-1] print(string) ''' print(''.join(reversed(input())))
字符串反转
https://www.nowcoder.com/practice/e45e078701ab4e4cb49393ae30f1bb04
''' string=input()[::-1] print(string) ''' print(''.join(reversed(input())))
相关推荐