我现在有这样的一个字典cost_safeguard={"Weibo":[u"微博数据中心",u"企业微博",u"手机微博",u"微博广告",u"天气通",u"微博平台",u"通行证",u"微博平台第三方应用",u"微米",u"微博主站",u"浪淘项目",u"微博推荐",u"微博数据系统",u"微博搜索产品",u"微博电商",u"微博关联应用",u"微博用户产品第三方应用",u"微博通讯产品",u"微博内容产品",u"微博线下系统",u"微游戏",u"微博虚拟货币",u"微博手机通讯产品",u"企业端商业第三方应用",u"乐库",u"微盘",u"微博头条",u"找节操",u"微博商业展示服务平台"],"Portal":["Search","Space","VIKA",u"手机新浪网","WOOCALL",u"体育",u"博客",u"博客广告管理系统",u"发布系统",u"商城",u"基金销售资质申请",u"女性",u"好耶",u"娱乐",u"宽带",u"形象系统",u"房产",u"门户广告",u"播客后台",u"教育",u"新浪show",u"新浪TV",u"新闻中心",u"新闻搜索",u"科技",u"股票行情",u"视频",u"论坛",u"评论",u"财经客户端",u"轻博客",u"播客",u"跨公司各产品线",u"公益项目",u"流媒体","Sina+Open+API",u"BannerAds-技术服务收入","IM",u"新浪视频",u"财经",u"汽车",u"圈子",u"贴吧",u"星座",u"育儿",u"P2P直播",u"微博视频",u"新浪用户研究平台",u"微客通","app","wap","Portal","COM","Video","blog","Portal+Corp",u"旅游频道",u"商业运营活动站",u"视频web",u"点直播混跑",u"视频点播","Portal+Ali",u"新闻推荐","Integration+of+internet+and+TV",u"网台联动",u"媒体平台",u"新浪新闻移动客户端"],"Game":[u"支付",u"游戏",u"手机游戏","Game+AD","Game","Game+Portal"],"Mobile":["KJAVA","MMS","RBT","SMS-1118","SMS-5366","SMS-8888","SMS-9888","WAP",u"wap搜索",u"无线系统支持",u"计费",u"SMS-无端口",u"小灵通","IVR","Mobile","MVAS","Reading-SP"],"DFZ":[u"华南站",u"地方站","DFZ","DFZ"],"Corp":["SUDAS",u"互动图片服务",u"产品数据",u"供保库存",u"动态应用平台",u"呼叫中心",u"品质分析系统",u"域名管理系统",u"基础支持系统",u"基础监控系统",u"存储池",u"安全保障系统",u"数据库平台",u"新浪内容加速平台",u"新闻静态池",u"日志分析系统",u"系统管理平台",u"网络核心",u"虚拟池",u"质量保证系统",u"staff邮箱",u"备份池",u"新浪运维数据平台",u"云存储平台","CRM","ERP","SAET","Corp","Corp","Allocation",u"数据系统服务平台","Ali+Corporate",u"新浪弹性计算平台",u"业务监控系统"],"Other":[u"云计算应用平台",u"奥委会合作伙伴",u"海外支持",u"读书",u"邮箱","Email_Corp","Email_person","IASK","other","Reading-B2C","abroad","Email","Other","cloud+computing","Search","Reading-B2C_old","Reading-B2B",u"微彩票",u"微操盘",u"微人脉"]}我在前端是这个遍历的 {%forkeyincost_safeguard%}{%ifkey==item.lv2_name%}{%forkey,valueincost_safeguard%}{%ifvalue==item.name%}{{value.value}} {%else%}{{value.value}} {%endif%}{%endfor%}{%endif%}{%endfor%}我主要就想通过key来获取value这个列表{%forkey,valueincost_safeguard%}但是我的这句代码获取不到,该怎么做呢?
相关分类