9. ```py class Solution: def isPalindrome(self, x: int) -> bool: return (k:=str(x)) == k[::-1] ``` ~~字符数好像还多了~~