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