python 实现case when , 2023-01-31 05:01:48 python case 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") 相关文章