题目描述:
写出一个程序,接受一个字符串,然后输出该字符串反转后的字符串。(字符串长度不超过1000)
代码:
1 class Solution: 2 def solve(self, str): 3 return str[::-1]