{"width":"100%","author_url":"https://blog.hatena.ne.jp/furyu-tei/","provider_url":"https://hatena.blog","author_name":"furyu-tei","height":"190","url":"https://memo.furyutei.com/entry/20131226/1388053791","type":"rich","blog_title":"\u98a8\u67f3\u30e1\u30e2","published":"2013-12-26 19:29:51","version":"1.0","blog_url":"https://memo.furyutei.com/","title":"\u3010\u899a\u66f8\u3011\u30ea\u30b9\u30c8(list)\u2192\u8f9e\u66f8(dict)\u5909\u63db","image_url":null,"provider_name":"Hatena Blog","description":"2\u3064\u306e\u30ea\u30b9\u30c8\u304b\u3089\u30011\u3064\u76ee\u3092\u30ad\u30fc\u30012\u3064\u76ee\u3092\u5024\u3068\u3059\u308b\u8f9e\u66f8\u3092\u4f5c\u6210 def two_list_to_dict(key_list, val_list): return dict(zip(key_list, val_list)) print two_list_to_dict(['a','b','c'],[1,2,3]) # {'a': 1, 'c': 3, 'b': 2} 1\u3064\u306e\u30ea\u30b9\u30c8\u304b\u3089\u3001\u30ad\u30fc\u3092\u8981\u7d20\u756a\u53f7\u3068\u3059\u308b\u8f9e\u66f8\u3092\u4f5c\u6210 def list_to_dict(val_list): #return two_list_to_dict(range(0,len(val_list)), val_list) return\u2026","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmemo.furyutei.com%2Fentry%2F20131226%2F1388053791\" title=\"\u3010\u899a\u66f8\u3011\u30ea\u30b9\u30c8(list)\u2192\u8f9e\u66f8(dict)\u5909\u63db - \u98a8\u67f3\u30e1\u30e2\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","categories":["python"]}