<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>yosshi71jp</author_name>
  <author_url>https://blog.hatena.ne.jp/yosshi71jp/</author_url>
  <blog_title>シコウサクゴ（）</blog_title>
  <blog_url>https://yosshi71jp.hatenadiary.org/</blog_url>
  <categories>
    <anon>python</anon>
    <anon>メモ</anon>
  </categories>
  <description>pythonでzipと言えば、複数のリストのタプルを返す関数です。挙動は、 In [5]: a = [1,2,3] In [6]: b = [4,5,6] In [7]: c = [7,8,9] In [8]: zip(a,b,c) Out[8]: [(1, 4, 7), (2, 5, 8), (3, 6, 9)] こんな動きをします。行列の転置に似てるなと、今思いました。 この逆の動きをする関数がないものかなーと調べてたら、関数はないものの、簡単な方法がありました。 In [9]: d = zip(a,b,c) In [10]: zip(*d) # ここ注目！ Out[10]: [(1, 2…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyosshi71jp.hatenadiary.org%2Fentry%2F20100213%2F1266047973&quot; title=&quot;zip関数と逆の動きをさせる方法（unzip） - シコウサクゴ（）&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>2010-02-13 16:59:33</published>
  <title>zip関数と逆の動きをさせる方法（unzip）</title>
  <type>rich</type>
  <url>https://yosshi71jp.hatenadiary.org/entry/20100213/1266047973</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
