赞
踩
from collections import deque
q=deque(range(20))
q.rotate(3)
q # deque([17, 18, 19, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16])
q.rotate(-3)
q # deque([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19])
def yanghui(t):
print([1])
line = [1,1
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。