Write a function that takes a string as input and returns the string reversed.
Example:
Given s = “hello”, return “olleh”.
就是return一个反过来的string。
class Solution(object):
def reverseString(self, s):
"""
:type s: str
:rtype: str
"""
return s[::-1]
这个没什么可以说的,熟悉切片操作就好。