摘要: class StateMachine: def __init__(self): self.handlers = {} # 状态转移函数字典 self.startState = None # 初始状态 self.endState = [] # 最终状态集合 # 参数name为状态名,handler为状 阅读全文
posted @ 2018-10-17 16:47 Jeff_blog 阅读(1235) 评论(0) 推荐(0) 编辑