Python列表

类似 C++ 的 vector

如果需要 C++ 中的队列,需要使用 deque()

a = [1, 2, 3]
print(a)
print(len(a))

  1. Python列表