2018年6月2日

Python语言的有限状态机实现样例

摘要: #!/usr/bin/env python3 class Connection(object): def __init__(self): self.change_state(ClosedConnection) def change_state(self,new_state): self.__class__ = new_state de... 阅读全文

posted @ 2018-06-02 17:40 蒋乐兴的技术随笔 阅读(1500) 评论(0) 推荐(0) 编辑

导航