def is_palindrome(n): s = str(n) for i in range(int(len(s) / 2)): if s[i] != s[-i - 1]: return False return True
Sign in to make a reply
jimmy在上海