{"title":"Python\u306ezip\u3068izip\u306e\u9055\u3044","image_url":null,"provider_url":"https://hatena.blog","provider_name":"Hatena Blog","width":"100%","author_url":"https://blog.hatena.ne.jp/yuheiomori0718/","categories":["python","memo"],"author_name":"yuheiomori0718","type":"rich","description":"zip\u306f\u4ee5\u524d\u3061\u3087\u3063\u3068\u66f8\u3044\u305f\u3051\u3069\u3001\u8907\u6570\u306e\u30b7\u30fc\u30b1\u30f3\u30b9\u306b\u4e26\u884c\u3057\u3066\u540c\u6642\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308bfor\u30eb\u30fc\u30d7\u3092\u66f8\u304f\u306e\u306b\u4fbf\u5229\u3002http://d.hatena.ne.jp/yuheiomori0718/20120626/1340721471 # coding=utf-8 seq1 = [1,2,3,4,5] seq2 = ['a','b','c','d','e'] for n, a in zip(seq1, seq2): print n, a # 1 a # 2 b # 3 c # 4 d # 5 e itertools.izip\u3082\u5b9f\u884c\u7d50\u679c\u306f\u5168\u304f\u540c\u3058\u306b\u898b\u3048\u308b # coding=utf-8 from itertools\u2026","version":"1.0","height":"190","blog_url":"https://y0m0r.hateblo.jp/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fy0m0r.hateblo.jp%2Fentry%2F20120716%2F1342436075\" title=\"Python\u306ezip\u3068izip\u306e\u9055\u3044 - \u30e1\u30e2\u7f6e\u304d\u5834\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","url":"https://y0m0r.hateblo.jp/entry/20120716/1342436075","published":"2012-07-16 19:54:35","blog_title":"\u30e1\u30e2\u7f6e\u304d\u5834"}