使用python输入一个字符串,将字符串反转打印

string=input('请输入一个字符串:')
lst=list(string) #使用列表,将列表转化为字符串
lst.reverse()
print(''.join(lst))

原文地址:https://www.cnblogs.com/clearlove007/p/14256501.html