列表
Python常用操作
a = 0
list.index(a)import collections
q = list.pop(0) # index=0, pop后,q=list[0], list=[剩余元素]
# list.remove(element)
# list.append(element)
q = collections.deque()
q.popleft()
q.pop() # 从right pop
q.append(1)
q.insert(0, 1)
q.extend(list) # 两个list concat, 不返回Last updated