暴力解法 class Solution: def getLongestPalindrome(self, A: str) -> int: max_len = 1 for start_index in range(0,len(A)): ...