1. 首页
  2. 数据库
  3. 其它
  4. python模拟事件触发机制详解

python模拟事件触发机制详解

上传者: 2020-12-31 15:26:32上传 PDF文件 50.28KB 热度 14次
本文实例为大家分享了python模拟事件触发机制的具体代码,供大家参考,具体内容如下 EventManager.py # -*- encoding: UTF-8 -*- # 系统模块 from queue import Queue, Empty from threading import * class EventManager: def __init__(self): """初始化事件管理器""" # 事件对象列表 self.__eventQueue = Queue() # 事件管理器开关 self.__active = False #
下载地址
用户评论