您的位置: 首页 > 文章 > 9. 回文数 9. 回文数 分类: 文章 • 2023-11-12 18:56:10 class Solution(object): def isPalindrome(self, x): """ :type x: int :rtype: bool """ return str(x) == str(x)[::-1]