{"published":"2016-02-24 02:05:34","categories":["Python3"],"author_name":"hiroto1979","provider_name":"Hatena Blog","version":"1.0","url":"https://hiroto1979.hatenablog.jp/entry/2016/02/24/020534","author_url":"https://blog.hatena.ne.jp/hiroto1979/","title":"Python3\u306b\u304a\u3051\u308bmap/filter\u306e\u4f7f\u3044\u65b9","image_url":null,"type":"rich","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhiroto1979.hatenablog.jp%2Fentry%2F2016%2F02%2F24%2F020534\" title=\"Python3\u306b\u304a\u3051\u308bmap/filter\u306e\u4f7f\u3044\u65b9 - \u3069\u3053\u304b\u306b\u5411\u304b\u3046\u3089\u3057\u3044\u8a71\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_url":"https://hiroto1979.hatenablog.jp/","blog_title":"\u3069\u3053\u304b\u306b\u5411\u304b\u3046\u3089\u3057\u3044\u8a71","description":"\u306f\u3058\u3081\u306b map()/filter()\u306e\u4f7f\u3044\u3069\u3053\u308d\u304c\u3088\u304f\u308f\u304b\u3089\u306a\u3044\u306e\u3067\u3001\u81ea\u5206\u306a\u308a\u306b\u8abf\u67fb\u3092\u3057\u3066\u307f\u305f\u3002 \u3053\u306e2\u3064\u306e\u95a2\u6570\u306f\u3001Python2\u7cfb\u3068Python3\u7cfb\u3067\u306f\u6319\u52d5\u304c\u7570\u306a\u308b\u306e\u3067\u3001\u307e\u305a\u306f\u305d\u306e\u8a71\u304b\u3089\u3002 \u307e\u305a\u306f\u3001\u5177\u4f53\u7684\u306b\u5b9f\u884c\u5185\u5bb9\u3092\u898b\u3066\u307f\u305f\u3044\u3002 python2\u7cfb\u3067\u306e\u5b9f\u884c\u7d50\u679c >>> print(range(10)) [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] >>> print(map(lambda x: x*2, range(10))) [0, 2, 4, 6, 8, 10, 12, 14, 16, 18] >>> print(filter(lambda x: x % 2, range\u2026","provider_url":"https://hatena.blog","width":"100%","height":"190"}