Write a function that takes a string as input and returns the string reversed.
Example:
Given s = "hello", return "olleh".
这一题就比较搞笑了....非常的easy.
class Solution(object):
def reverseString(self, s):
"""
:type s: str
:rtype: str
"""
a=s[::-1]
return a
代码不需要解释吧,看了上一题后这一题就是小儿科。