state.py

来自「this is the most basic to learn python」· Python 代码 · 共 10 行

PY
10
字号
#: c04:statemachine:State.py
# A State has an operation, and can be moved
# into the next State given an Input:

class State:
  def run(self): 
    assert 1, "run not implemented"
  def next(self, input):
    assert 1, "next not implemented"
#:~

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?