class Solution:
def isPalindrome(self, x: int) -> bool:
#int转换成字符串,反转字符串 进行比较 OK
return str(x)==str(x)[::-1]
class Solution:
def isPalindrome(self, x: int) -> bool:
#int转换成字符串,反转字符串 进行比较 OK
return str(x)==str(x)[::-1]