class Solution(object): def isPalindrome(self, x): """ :type x: int :rtype: bool """ s=str(x) if(s==s[::-1]): return True else: return False
leetcode 9 -> Palindrome Number
猜你喜欢
转载自www.cnblogs.com/sea-stream/p/10506231.html
周排行