❤leetcode,python2❤請編寫一個函數,其功能是將輸入的字符串反轉過來。

class Solution(object): def reverseString(self, s): """ :type s: str :rtype: str """ return str(s)[::-1]
相關文章
相關標籤/搜索