力扣 9. 迴文數

題目來源:力扣 https://leetcode-cn.com/problemset/all/ python class Solution: def isPalindrome(x): ''' #使用字符串翻轉 x = str(x) if x[::-1] == x: return True
相關文章
相關標籤/搜索