没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
开关郎 将开关块添加到Python语言。 此模块在不更改语言的情况下为Python添加了显式的开关功能。 它基于定义执行块的标准方法: with语句。 例子 from switchlang import switch def main (): num = 7 val = input ( "Enter a character, a, b, c or any other: " ) with switch ( val ) as s : s . case ( 'a' , process_a ) s . case ( 'b' , lambda : process_with_data ( val , num , 'other values still' )) s . default ( process_any ) d
资源推荐
资源详情
资源评论
收起资源包目录
python-switch-master.zip (8个子文件)
python-switch-master
requirements-dev.txt 15B
switchlang
__switchlang_impl.py 5KB
__init__.py 387B
tests
test_core.py 8KB
LICENSE 1KB
setup.py 1KB
.gitignore 1KB
README.md 6KB
共 8 条
- 1
资源评论
凯然
- 粉丝: 18
- 资源: 4568
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功