力扣 9. 回文数

题目来源:力扣 https://leetcode-cn.com/problemset/all/ python class Solution: def isPalindrome(x): ''' #使用字符串翻转 x = str(x) if x[::-1] == x: return True
相关文章
相关标签/搜索