List in Python that keeps rotating to the right

前端 未结 0 815
说谎
说谎 2020-12-19 02:23

So I want to create a list that keeps rotating to the right by one .

for Example : m = [1,0,0,0,0].

everytime I run it it should rotate by one to the right.

相关标签:
回答
  • 消灭零回复
提交回复
热议问题