{"author_url":"https://blog.hatena.ne.jp/atsuoishimoto/","url":"https://atsuoishimoto.hatenablog.com/entry/2018/01/29/100503","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fatsuoishimoto.hatenablog.com%2Fentry%2F2018%2F01%2F29%2F100503\" title=\"\u30af\u30e9\u30b9\u30d6\u30ed\u30c3\u30af\u306e\u3072\u307f\u3064 - atsuoishimoto&#39;s diary\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","width":"100%","published":"2018-01-29 10:05:03","author_name":"atsuoishimoto","provider_url":"https://hatena.blog","height":"190","image_url":null,"blog_url":"https://atsuoishimoto.hatenablog.com/","provider_name":"Hatena Blog","categories":[],"type":"rich","title":"\u30af\u30e9\u30b9\u30d6\u30ed\u30c3\u30af\u306e\u3072\u307f\u3064","description":"\u3055\u3066\u3001 \u30ea\u30b9\u30c8\u5185\u5305\u306e\u3072\u307f\u3064 - atsuoishimoto's diary \u3067\u3001Python3\u3067\u306f\u3001\u30ea\u30b9\u30c8\u5185\u5305\u5f0f\u306f\u95a2\u6570\u547c\u3073\u51fa\u3057\u3068\u306a\u308b\u3053\u3068\u3092\u8aac\u660e\u3057\u305f\u3002 >>> a = [i*2 for i in range(3)] \u3068\u3044\u3046\u30b9\u30af\u30ea\u30d7\u30c8\u306f\u3001\u6b21\u306e\u3088\u3046\u306b\u5c55\u958b\u3055\u308c\u308b\u3002 >>> def _listcomp(_it): ... ret = [] ... for i in it: ... ret.append(i*2) ... return ret ... >>> _it = range(3) >>> a = _listcomp(it) \u901a\u5e38\u3001\u3053\u306e\u70b9\u306f\u3042\u307e\u308a\u6c17\u306b\u3059\u308b\u5fc5\u8981\u306f\u306a\u3044\u304c\u3001\u554f\u984c\u3068\u306a\u308b\u30b1\u30fc\u30b9\u3082\u306a\u304f\u306f\u306a\u3044\u3002 \u2026","blog_title":"atsuoishimoto's diary","version":"1.0"}