获得用户输入的一个字符串,将字符串第一位移到最后一位,其他字符顺序左移一位,请完善代码s=input(" ")print(_ _)
横线上填入以下内容:s[1:]+s[0]
如有帮助,请给个采纳,谢谢!
s=input(" ") print(s[1:]+s[0])