str=input('请输入字符串:')

for i in range(len(str)-1,-1,-1):

print(str[i],end=' ')

字符串逆序输出-第二周第三题_技术

 

  

网上摘抄

字符串逆序输出-第二周第三题_技术_02