Python Day3
2016-06-05 本文已影响0人
Hermosa_SU
字符串反转
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