<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>furyu-tei</author_name>
  <author_url>https://blog.hatena.ne.jp/furyu-tei/</author_url>
  <blog_title>風柳メモ</blog_title>
  <blog_url>https://memo.furyutei.com/</blog_url>
  <categories>
    <anon>python</anon>
  </categories>
  <description>2つのリストから、1つ目をキー、2つ目を値とする辞書を作成 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つのリストから、キーを要素番号とする辞書を作成 def list_to_dict(val_list): #return two_list_to_dict(range(0,len(val_list)), val_list) return…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmemo.furyutei.com%2Fentry%2F20131226%2F1388053791&quot; title=&quot;【覚書】リスト(list)→辞書(dict)変換 - 風柳メモ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2013-12-26 19:29:51</published>
  <title>【覚書】リスト(list)→辞書(dict)変換</title>
  <type>rich</type>
  <url>https://memo.furyutei.com/entry/20131226/1388053791</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
