<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>atsuhiro-me</author_name>
  <author_url>https://blog.hatena.ne.jp/atsuhiro-me/</author_url>
  <blog_title>みーのぺーじ</blog_title>
  <blog_url>https://pc.atsuhiro-me.net/</blog_url>
  <categories>
    <anon>Python</anon>
  </categories>
  <description>リストを指定した数で区切るPython関数です． ls: 区切る元のリスト, n: 区切りをいれる数 def divide_list(ls, n): for i in range(0, len(ls), n): yield ls[i:i+n] 実行結果 (1-99) ls = list(range(100)) print(list(divide_list(ls,10))) print(list(divide_list(ls,9))) print(list(divide_list(ls,8))) &gt;&gt;&gt; [[0, 1, 2, 3, 4, 5, 6, 7, 8, 9], [10, 11, 12, …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpc.atsuhiro-me.net%2Fentry%2F2015%2F06%2F12%2F021033&quot; title=&quot;リストを指定した数で区切るPython関数 - みーのぺーじ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2015-06-12 02:10:33</published>
  <title>リストを指定した数で区切るPython関数</title>
  <type>rich</type>
  <url>https://pc.atsuhiro-me.net/entry/2015/06/12/021033</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
