27 - Easy - 反转字符串
2018-05-18 本文已影响0人
1f872d1e3817
请编写一个函数,其功能是将输入的字符串反转过来。
示例:
输入:s = "hello"
返回:"olleh"
class Solution:
def reverseString(self, s):
"""
:type s: str
:rtype: str
"""
return s[::-1]