# # # @param s string字符串 # @return bool布尔型 # class Solution: def isPalindrome(self , s ): # write code here d = [] for c in s: if c.isalnum(): d.append(c) d = ''.join(d).lower() return d == d[::-1]
# # # @param s string字符串 # @return bool布尔型 # class Solution: def isPalindrome(self , s ): # write code here d = [] for c in s: if c.isalnum(): d.append(c) d = ''.join(d).lower() return d == d[::-1]