使用Asyncio的Coroutine來實現一個有限狀態機

如圖: #!/usr/bin/env python # -*- coding: utf-8 -*- import asyncio import datetime import time from random import randint @asyncio.coroutine def StartState(): print("Start State called \n") i
相關文章
相關標籤/搜索