def huiwen(s):
if s==s[::-1]:
return True
else:
return False
s=input("请输入字符串:")
if huiwen(s):
print(f'{s} 是回文串')
else:
print(f'{s} 不是是回文串')
def huiwen(s):
if s==s[::-1]:
return True
else:
return False
s=input("请输入字符串:")
if huiwen(s):
print(f'{s} 是回文串')
else:
print(f'{s} 不是是回文串')