输入一个字符串,判断是否头尾对应的。好比字符串'abcba'就是头尾对应的。好比字符串'+-**-+',也是头尾对应的。好比字符串'abcbb'就不是头尾对应的。python
输入一个字符串code
若是头尾对应,输出'yes' 不然输出'no'blog
abcba
yes
s1=input() if s1==s1[::-1]: print('yes') else: print('no')