📜  python回文检查 - Python代码示例

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

代码示例5
#Palindrome check
word = 'reviver'
p = bool(word.find(word[::-1]) + 1)
print(p) # True