倒序输出字符串

s = input("请输入一个字符串\n")
print(str(s)[::-1])

 

posted @ 2021-09-12 22:04  boyc  阅读(25)  评论(0)    收藏  举报