python switch的实现
来源:互联网 发布:windows dns缓存时间 编辑:程序博客网 时间:2024/05/17 04:36
def createAddPage(self):
wx.MessageBox('1')
def createSubPage(self):
wx.MessageBox('2')
def createTypepage(self):
wx.MessageBox('3')
def createCountPage(self):
wx.MessageBox('4')
以下是实现方式,使用了dictionary来模拟
title=PSET.STRADD
functions={PSET.STRADD:self.createAddPage,
PSET.STRSUB:self.createSubPage,
PSET.STRCOUNT:self.createCountPage,
PSET.STRTYPE:self.createTypepage}
functions.get(title)()
- python switch的实现
- Python的switch实现
- python的switch实现
- python 中switch的实现
- python switch结构的实现
- Python实现类似switch的分支结构
- python switch语句的多种实现方法
- python中 switch 语句的实现
- Python中switch结构的实现
- python实现简单的switch功能
- python中实现switch
- python switch 实现
- python实现switch功能
- python 实现switch
- Python的Switch语句
- Python的switch方法
- Python中switch-case实现
- python字典实现switch功能
- SQLite基本操作加数据库分页查询
- *任意位置浮动固定层
- IRQ和中断号的区别
- Javascript删除节点的全部内容
- 【转】C语言插件机制(下)
- python switch的实现
- nutch1.2 排序
- RDLC Image控件加入图片的几种方式
- 使用Oracle的DBMS_SQL包执行动态SQL语句
- 【转】C语言插件机制(上)
- vb中对ListView的增删改查
- 将类成员函数用做C回调函数
- android 获取手机设备的唯一码(IMIE ) 注册用
- C++著名程序库的比较和学习经验