题目如下:
Python代码:
def isPalindrome(self, x): """ :type x: int :rtype: bool """ if(x>=0): s = int(str(x)[::-1]) if(x==s): return True else: return False else: return False
题目如下:
Python代码:
def isPalindrome(self, x): """ :type x: int :rtype: bool """ if(x>=0): s = int(str(x)[::-1]) if(x==s): return True else: return False else: return False