{"description":"\u30ea\u30b9\u30c8\u3092\u6307\u5b9a\u3057\u305f\u6570\u3067\u533a\u5207\u308bPython\u95a2\u6570\u3067\u3059\uff0e ls: \u533a\u5207\u308b\u5143\u306e\u30ea\u30b9\u30c8, n: \u533a\u5207\u308a\u3092\u3044\u308c\u308b\u6570 def divide_list(ls, n): for i in range(0, len(ls), n): yield ls[i:i+n] \u5b9f\u884c\u7d50\u679c (1-99) ls = list(range(100)) print(list(divide_list(ls,10))) print(list(divide_list(ls,9))) print(list(divide_list(ls,8))) >>> [[0, 1, 2, 3, 4, 5, 6, 7, 8, 9], [10, 11, 12, \u2026","blog_title":"\u307f\u30fc\u306e\u307a\u30fc\u3058","blog_url":"https://pc.atsuhiro-me.net/","title":"\u30ea\u30b9\u30c8\u3092\u6307\u5b9a\u3057\u305f\u6570\u3067\u533a\u5207\u308bPython\u95a2\u6570","author_url":"https://blog.hatena.ne.jp/atsuhiro-me/","image_url":null,"version":"1.0","type":"rich","height":"190","categories":["Python"],"url":"https://pc.atsuhiro-me.net/entry/2015/06/12/021033","provider_name":"Hatena Blog","provider_url":"https://hatena.blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpc.atsuhiro-me.net%2Fentry%2F2015%2F06%2F12%2F021033\" title=\"\u30ea\u30b9\u30c8\u3092\u6307\u5b9a\u3057\u305f\u6570\u3067\u533a\u5207\u308bPython\u95a2\u6570 - \u307f\u30fc\u306e\u307a\u30fc\u3058\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_name":"atsuhiro-me","width":"100%","published":"2015-06-12 02:10:33"}