【leetcode】344. Reverse String

85.25%

简直是上一道题目的子命题

class Solution(object):
    def reverseString(self, s):
        """
        :type s: str
        :rtype: str
        """
        return s[::-1]

猜你喜欢

转载自blog.csdn.net/u014381464/article/details/80777203
今日推荐