{"type":"rich","version":"1.0","blog_title":"Sabrou-mal \u30b5\u30d6\u30ed\u30a6\u4e38","provider_url":"https://hatena.blog","url":"https://inarizuuuushi.hatenablog.com/entry/2016/12/04/001358","description":"python\u306elist\u64cd\u4f5c\u306b\u95a2\u3059\u308b\u8c46\u9054\u3067\u3059\u3002 enumerate: index\u4ed8\u304dfor\u30eb\u30fc\u30d7 a = ['I', 'like', 'cats'] for i, word in enumerate(a): print(i, word) > 0 I > 1 like > 2 cats index: list\u306b\u304a\u3051\u308b\u6307\u5b9a\u3057\u305f\u8981\u7d20\u306eindex\u3092\u53d6\u5f97 a = [1, 2, 3] a.index(2) > 1 #\u8981\u7d20\u304c\u8907\u6570\u3042\u308b\u5834\u5408\u306f\u6700\u3082index\u304c\u5c0f\u3055\u3044\u3082\u306e\u3092\u51fa\u529b remove: list\u306e\u4e2d\u306e\u6307\u5b9a\u3057\u305f\u8981\u7d20\u3092\u53d6\u308a\u9664\u304f a = [1, 1, 2, 3] a.remove(1) a > [1, 2, 3] \u2026","categories":[" python "],"author_url":"https://blog.hatena.ne.jp/inarizuuuushi/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Finarizuuuushi.hatenablog.com%2Fentry%2F2016%2F12%2F04%2F001358\" title=\" Python \u30b3\u30fc\u30c7\u30a3\u30f3\u30b0(\u8c46) list\u7de8 - Sabrou-mal \u30b5\u30d6\u30ed\u30a6\u4e38\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","image_url":null,"published":"2016-12-04 00:13:58","height":"190","title":" Python \u30b3\u30fc\u30c7\u30a3\u30f3\u30b0(\u8c46) list\u7de8","provider_name":"Hatena Blog","width":"100%","author_name":"inarizuuuushi","blog_url":"https://inarizuuuushi.hatenablog.com/"}