{"provider_url":"https://hatena.blog","version":"1.0","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsumi-m.hatenadiary.org%2Fentry%2F20080903%2Fp4\" title=\" \u30ea\u30b9\u30c8\u306e\u5185\u5305\u8868\u8a18\u306e\u7d9a\u304d \u3042\u3068\u30b8\u30a7\u30cd\u30ec\u30fc\u30bf\u5f0f - [ESC]\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","height":"190","width":"100%","blog_title":"[ESC]","url":"https://sumi-m.hatenadiary.org/entry/20080903/p4","author_url":"https://blog.hatena.ne.jp/sumi-m/","blog_url":"https://sumi-m.hatenadiary.org/","image_url":null,"title":" \u30ea\u30b9\u30c8\u306e\u5185\u5305\u8868\u8a18\u306e\u7d9a\u304d \u3042\u3068\u30b8\u30a7\u30cd\u30ec\u30fc\u30bf\u5f0f","published":"2008-09-03 00:00:03","type":"rich","provider_name":"Hatena Blog","categories":["\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0","Python"],"description":"\u6628\u65e5\u306f\u5fd8\u308c\u3066\u305f\u3051\u3069\u3001 [ (x, y) for x in (1, 2, 3) for y in (2, 3, 4) if y % 2 == 0 ] \u307f\u305f\u3044\u306bfor\u3092\u3044\u304f\u3064\u3082\u7d9a\u3051\u30662\u91cd3\u91cdx\u91cd\u30eb\u30fc\u30d7\u306b\u3057\u305f\u308a\u3001if\u3067\u7d5e\u308a\u8fbc\u3093\u3060\u308a\u3082\u3067\u304d\u308b\u3002 \u4e0a\u306e\u306f[(1, 2), (1, 4), (2, 2), (2, 4), (3, 2), (3, 4)]\u306b\u306a\u308b\u3002 \u3042\u3068\u3053\u308c\u3092\u4e38\u30ab\u30c3\u30b3\u306e\u4e2d\u3067\u66f8\u304f\u3068\u30b8\u30a7\u30cd\u30ec\u30fc\u30bf\u304c\u4f5c\u308c\u308b\u3002 gen = ( x for x in xrange(1, 100) if x % 2 == 0 ) for z in gen: print z # 1\u304b\u3089100\u306e\u3046\u3061\u5076\u6570\u3060\u3051\u8868\u793a xrange()\u3063\u2026","author_name":"sumi-m"}