class Solution(object):
def reverseString(self, s):
"""
:type s: str
:rtype: str
"""
return s[::-1]
0,太简单
1,还是切片方法的运用,以前有类似的题目
class Solution(object):
def reverseString(self, s):
"""
:type s: str
:rtype: str
"""
return s[::-1]
0,太简单
1,还是切片方法的运用,以前有类似的题目