##########################################################
字符串列表方法解决
##########################################################
class Solution:
def isPalindrome(self, x: int) -> bool:
x = str(x)
if list(reversed(x)) == list(x):
return True
else:
return False