推导式相关
摘要:
mcase = {'a':10,'b':34,'A':7,'Z':3} mcase_new = {k.lower():mcase.get(k.lower(),0)+mcase.get(k.upper(),0) for k in mcase} #print(mcase_new) def add(n,i): return n+i def test(): for i in rang... 阅读全文
posted @ 2018-09-24 16:30 魔王李等猴哥的日子 阅读(100) 评论(0) 推荐(0) 编辑