def is_palindrome(n): s = str(n) while s: if s[0] == s[-1]: s = s[1:] else: break; return not s
发现大神真的多,细节做得真的好,考虑也很周全,代码量极少
Sign in to make a reply
belin故事
发现大神真的多,细节做得真的好,考虑也很周全,代码量极少