python web开发实录

字典

dict((a,b),(c,d)) or dict(a=b,c=d)
return {a:b,c:d}

{}.setdefault(key[, default_value]) 用于给字典添加新值
{}.formkeys([key,key],(value)) 初始化一个新的字典

posted @ 2016-10-24 09:57  紫金龙骑  阅读(132)  评论(0编辑  收藏  举报
UV PV