判断回文 word = input('enter your word:')word1 = list(word)word2 = list(word)[::-1]if word1 == word2: print('该词是回文词')else: print('不是回文词') 赞微海报分享
近期评论