python多線程之Event(事件)

#!/usr/bin/env python # -*- coding: utf-8 -*- import time from threading import Thread, Event import random items = [] event = Event() class Consumer(Thread): def __init__(self, items, event)
相關文章
相關標籤/搜索