python学习 05 函数switch功能

1.python没有switch功能,利用字典实现

如果用if else,可行但是效率不高

 

posted @ 2017-02-16 21:03  AlamZ  阅读(323)  评论(0编辑  收藏  举报