class = ‘c’ dict[class](...)
待测试想法:利用执行字符串代码的功能,实现switch的短代码分片执行功能
dict 实现 switch能力
原文:http://blog.51cto.com/106165/2153430