字符串反转
class Solution(object):
def reverseString(self, s):
"""
:type s: str
:rtype: str
"""
a=s[::-1]
return a
leetcode 34 Reverse String
字符串反转
class Solution(object):
def reverseString(self, s):
"""
:type s: str
:rtype: str
"""
a=s[::-1]
return a
leetcode 34 Reverse String