word = input('enter your word:')word1 = list(word)word2 = list(word)[::-1]if word1 == word2: print('该词是回文词')else: print('不是回文词')