判断用户输入是否为回文数
def fun(n):
huiwen=n::-1]
if n==huiwen:
print("是回文数!")
else:
print("不是回文数!")
str=input("请输入一个字符串")
fun(str)