我需要删除一个单词的第一个字母并将其移到最后,例如:
word = 'whatever' # I want to convert it to 'hateverw'
到目前为止,我试过这个:
word[1:] # hatever
但是我应该如何将第一个字母移到最后呢?
python python-2.7 python-3.x
python ×1
python-2.7 ×1
python-3.x ×1