1. 程式人生 > >5.1.9 隊列

5.1.9 隊列

empty class from style sin print int RoCE pre

from multiprocessing import Queue

q = Queue(3)

q.put(1)
q.put([1,, 2, ‘‘])
q.put({a: 1})
print(q.full())

print(q.get(q))
print(q.get(q))
print(q.get(q))
print(q.empty())
print(q.get(q))

5.1.9 隊列