发布时间:2019-09-08 09:09:46编辑:auto阅读(6186)
python 实现case when ,switch的功能
Python可以通过数据字典的方式实现
#!/usr/bin/env python
#coding=utf-8
list = {"id":"1","iname":"dwchaoyue","iaddr":"ShangHai","iage":"null"}
print list.get("id")
上一篇: Python 之 shutil模块
下一篇: Python13 字符转编码
51109
50502
41117
37965
32432
29333
28205
23049
23015
21339
1374°
2073°
1725°
1655°
1943°
1728°
2398°
4052°
3936°
2806°