Python F.S.M. 2nd

https://github.com/pytransitions/transitions 앞서의 상태머신 코드 라이브러리는 실행할 때에 시간을 많이 소모하고 , 상태머신 이동 관계가 복잡해질 경우 디버깅이 어려워지는 단점이 있다. 그래서 다른 코드를 테스트 해 보기로 한다. 위의 페이지를 참조하여 실행 from transitions import Machine import random class NarcolepticSuperhero(object): # Define some states. Most of the time, narcoleptic superheroes are just like # everyone else.... Continue Reading →

WordPress.com 제공.

위로 ↑