class Solution:
    def isPalindrome(self, x: int) -> bool:
        x = str(x)
        temp = x[::-1]      # x随着temp一起变？？不是，字符串不会一起变，数字也不会一起变
        # temp.append(1)      # 如果是列表，就会一起变！！！！
        return True if x == temp else False




x = 123125412
# x = [1, 23, 123, 412]
print(Solution().isPalindrome(x))

4a2bb27db3c67d46ae3e38108a3f0ba96cd127a7
<mask token>

class Solution:

    def isPalindrome(self, x: int) ->bool:
        x = str(x)
        temp = x[::-1]
        return True if x == temp else False


<mask token>

class Solution:

    def isPalindrome(self, x: int) ->bool:
        x = str(x)
        temp = x[::-1]
        return True if x == temp else False


<mask token>
print(Solution().isPalindrome(x))

class Solution:

    def isPalindrome(self, x: int) ->bool:
        x = str(x)
        temp = x[::-1]
        return True if x == temp else False


x = 123125412
print(Solution().isPalindrome(x))

class Solution:
    def isPalindrome(self, x: int) -> bool:
        x = str(x)
        temp = x[::-1]      # x随着temp一起变？？不是，字符串不会一起变，数字也不会一起变
        # temp.append(1)      # 如果是列表，就会一起变！！！！
        return True if x == temp else False




x = 123125412
# x = [1, 23, 123, 412]
print(Solution().isPalindrome(x))
