📜  palindrom python rekursiv - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:36.290000             🧑  作者: Mango

代码示例2
def ispalindrome(word):
    if len(word) < 2: return True
    if word[0] != word[-1]: return False
    return ispalindrome(word[1:-1])