class Solution:
def isPalindrome(self, x):
"""
:type x: int
:rtype: bool
"""
n = str(x)
m = n[::-1]
return n == m
0009 回文
最新推荐文章于 2021-12-03 14:50:29 发布
class Solution:
def isPalindrome(self, x):
"""
:type x: int
:rtype: bool
"""
n = str(x)
m = n[::-1]
return n == m