缘起,在人群中,我看见你---------------判断回文串

str_1 = '12345654321'
if str_1 == str_1[-1:-len(str_1) - 1:-1]:
    print(True)
else:
    print(False)
posted @ 2021-06-26 13:51  Ame林汀  阅读(75)  评论(0)    收藏  举报