{"type":"rich","title":" zip\u95a2\u6570","author_url":"https://blog.hatena.ne.jp/morchin/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmorchin.hatenadiary.org%2Fentry%2F20060727%2Fp1\" title=\" zip\u95a2\u6570 - \u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_url":"https://hatena.blog","version":"1.0","width":"100%","description":"zip\u95a2\u6570\u306f\u3001\u30ea\u30b9\u30c8\u306e\u6a2a\u306e\u4e26\u3073\u3092\u7e26\u306b\u898b\u3066\u304f\u308c\u308b\u3002 a = (1, 2, 3) b = (4, 5, 6) c = (7, 8, 9) print zip(a, b, c) #=> [(1, 4, 7), (2, 5, 8), (3, 6, 9)] a = (0, 1, 2, 3) print zip( a, a[1:]+(a[0],) ) #=> [(0, 1), (1, 2), (2, 3), (3, 0)]\u3053\u308c\u306f\u3001\uff11\u7a2e\u985e\u3082\u3057\u304f\u306f\uff12\u7a2e\u985e\u4ee5\u4e0a\u306e\u8907\u6570\u306e\u30ea\u30b9\u30c8\u306e\u60c5\u5831\u3092\u3044\u3063\u307a\u3093\u306b\uff11\u3064\u305a\u3064\u53d6\u308a\u51fa\u3057\u305f\u3044\u6642\u306b\u4fbf\u5229\u3067\u3042\u308b\u3002#\u307e\u3060\u30b9\u30e9\u30a4\u30b7\u30f3\u30b0\u3092\u52c9\u5f37\u3057\u3066\u3044\u306a\u3044\u306e\u3067\u3001(1, 2, 3, 0)\u3092\u4f5c\u308a\u51fa\u3059 a[1:]\u2026","height":"190","url":"https://morchin.hatenadiary.org/entry/20060727/p1","blog_url":"https://morchin.hatenadiary.org/","blog_title":"\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u65e5\u8a18","author_name":"morchin","published":"2006-07-27 00:00:00","categories":["Python"],"image_url":null,"provider_name":"Hatena Blog"}