Lamarck 0009 回文数 01 随便写写 class Solution(object): def isPalindrome(self, x): """ :type x: int :rtype: bool """ charNum = str(x) return charNum == charNum[::-1]