字符串逆序输出

a=input("请输入字符串:")
result=a[::-1]
print("该字符串的倒序为:",result)

 

posted @ 2021-09-13 20:38  tan45  阅读(47)  评论(0)    收藏  举报