判断字符串头尾结构

s1=input()
 
if s1==s1[::-1]:
    print('yes')
else:
    print('no')

 

posted @ 2020-06-21 16:23  tf383838  阅读(184)  评论(0编辑  收藏  举报