摘要: 回文数 自己的蠢,好像经常忘记写range(),在对于len()的时候 class Solution: def isPalindrome(self, x: int) -> bool: if x == 0 or not x: return False x = str(x) # 像这样的报错咋不劝退人 阅读全文
posted @ 2022-04-18 15:44 索匣 阅读(22) 评论(0) 推荐(0) 编辑