摘要: 摘自网络 python本身没有switch语句,解决方法有以下3种: A.使用dictionaryvalues = { value1: do_some_stuff1, value2: do_some_stuff2, ... valueN: do_some_stuffN, }values.get(va 阅读全文
posted @ 2017-06-17 15:36 IT由零开始 阅读(536) 评论(0) 推荐(0) 编辑