{"type":"rich","blog_url":"https://blog.turai.work/","title":"python\u3067\u914d\u5217\u64cd\u4f5c","version":"1.0","categories":["python"],"provider_url":"https://hatena.blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.turai.work%2Fentry%2F20170812%2F1502512372\" title=\"python\u3067\u914d\u5217\u64cd\u4f5c - \u52d5\u304b\u3056\u308b\u3053\u3068\u30d0\u30b0\u306e\u5982\u3057\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_url":"https://blog.hatena.ne.jp/thr3a/","url":"https://blog.turai.work/entry/20170812/1502512372","published":"2017-08-12 13:32:52","author_name":"thr3a","provider_name":"Hatena Blog","image_url":null,"height":"190","description":"\uff11\u301c\uff11\uff10\u307e\u3067\u306e\u914d\u5217\u3092\u3064\u304f\u308a\u305f\u3044 array = list(range(1,10)) >> [1, 2, 3, 4, 5, 6, 7, 8, 9] ruby\u3067\u3044\u3046each\u3092\u3057\u305f\u3044 for num in array: print(num) ruby\u3067\u3044\u3046each_with_Index\u304c\u3057\u305f\u3044 array = list(range(1,10)) for i,num in enumerate(array): print(i, num) \u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8868\u793a\u3055\u308c\u308b 0 1 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 ruby\u3067\u3044\u3046map\u304c\u3057\u305f\u3044 \u4f8b\u3048\u3070\u914d\u5217\u306e\u5168\u8981\u7d20\u306b\uff11\u3092\u8db3\u3057\u305f\u3044\u5834\u5408 \u975e\u5e38\u2026","blog_title":"\u52d5\u304b\u3056\u308b\u3053\u3068\u30d0\u30b0\u306e\u5982\u3057","width":"100%"}