class Solution(object):
def isPalindrome(self, x):
"""
:type x: int
:rtype: bool
"""
x = list(str(x))
xx = x[::-1]
if x == xx:
return True
else:
return False
刷题记录