python列表左移k位和右移k位 新建模块文件move.py,保存左移函数和右移函数 左移 def left(lst,k): tem = lst for i in range(0,k): tem.append(tem.pop(0