没有合适的资源?快使用搜索试试~ 我知道了~
python-statemachine:Python有限状态机变得容易
共48个文件
py:18个
rst:11个
ini:3个
需积分: 41 2 下载量 85 浏览量
2021-05-03
14:34:58
上传
评论
收藏 40KB ZIP 举报
温馨提示
Python状态机 Python变得容易。 免费软件:MIT许可证 文档: : 。 入门 要安装Python状态机,请在您的终端中运行以下命令: $ pip install python-statemachine 定义您的状态机: >>> from statemachine import StateMachine, State >>> class TrafficLightMachine ( StateMachine ): ... green = State( ' Green ' , initial = True ) ... yellow = State( ' Yellow ' ) ... red = State( ' Red ' ) ... ... slowdown = green.to(yellow) ... stop = yellow.to(
资源推荐
资源详情
资源评论
收起资源包目录
python-statemachine-develop.zip (48个子文件)
python-statemachine-develop
setup.py 1KB
.gitignore 850B
.pyup.yml 24B
Makefile 2KB
.travis.yml 1KB
MANIFEST.in 264B
requirements_dev.txt 116B
LICENSE 1KB
HISTORY.rst 3KB
setup.cfg 346B
.github
ISSUE_TEMPLATE.md 331B
statemachine
__init__.py 281B
statemachine.py 15KB
utils.py 192B
mixins.py 894B
registry.py 2KB
exceptions.py 3KB
README.rst 6KB
tests
test_state_callbacks.py 3KB
test_transitions.py 4KB
conftest.py 3KB
test_multiple_destinations.py 6KB
test_callable_instance.py 525B
__init__.py 24B
test_statemachine.py 11KB
test_statemachine_inheritance.py 2KB
test_registry.py 2KB
test_mixins.py 879B
pytest.ini 185B
requirements_test.txt 201B
.coveragerc 468B
AUTHORS.rst 523B
CONTRIBUTING.rst 3KB
.flake8 76B
docs
Makefile 7KB
index.rst 249B
conf.py 8KB
history.rst 28B
authors.rst 28B
installation.rst 1KB
make.bat 6KB
readme.rst 27B
usage.rst 87B
contributing.rst 33B
.checkignore 30B
.editorconfig 292B
tox.ini 724B
mypy.ini 171B
共 48 条
- 1
资源评论
六演
- 粉丝: 17
- 资源: 4794
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功