📅  最后修改于: 2022-03-11 14:45:36.290000             🧑  作者: Mango
def ispalindrome(word):
if len(word) < 2: return True
if word[0] != word[-1]: return False
return ispalindrome(word[1:-1])