摘要: 自己写的: class Solution: def isPalindrome(self, s: str): # 将字符串转换为小写,以便进行大小写不敏感的比较 s_lower = s.lower() # 获取字符串的长度 n = len(s_lower) # 创建一个空列表,用于存储字母和数字 s_ 阅读全文
posted @ 2024-02-26 10:31 Junior_bond 阅读(13) 评论(0) 推荐(0)