input_str = input("请输入一个字符串")print(input_str[::-1])
字符串逆序输出
原文:https://www.cnblogs.com/lzw2019114243036/p/15257903.html