class Solution:
def isPalindrome(self, x):
"""
:type x: int
:rtype: bool
"""
if str(x)[::-1] == str(x):
return True
return False
leetcode - 9 - 回文数
最新推荐文章于 2022-05-31 20:06:09 发布
class Solution:
def isPalindrome(self, x):
"""
:type x: int
:rtype: bool
"""
if str(x)[::-1] == str(x):
return True
return False