<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hanaaaaaachiru</author_name>
  <author_url>https://blog.hatena.ne.jp/hanaaaaaachiru/</author_url>
  <blog_title>はなちるのマイノート</blog_title>
  <blog_url>https://www.hanachiru-blog.com/</blog_url>
  <categories>
    <anon>Python</anon>
  </categories>
  <description>はじめに 実は約数を列挙するプログラムを以前C#で作成したことがあるのですが、Pythonの勉強の一貫としてPythonでもやってみたいと思います。www.hanachiru-blog.com はじめに シンプルな実装 改良した実装 さいごに シンプルな実装 def get_divisors(n): if n &lt; 1: return for i in range(1, n+1): if n % i == 0: yield i これはシンプルに1から入力された値までを「割り切れるか」を調べています。ちなみに引数が特定の型でなかったり、不正な値のときはエラーを返したほうがいいんですかね？あまりPy…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.hanachiru-blog.com%2Fentry%2F2020%2F05%2F28%2F120000&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>https://cdn.user.blog.st-hatena.com/default_entry_og_image/152984076/1558573499189815</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-05-28 12:00:00</published>
  <title>【Python】約数を列挙するプログラムを実装してみる</title>
  <type>rich</type>
  <url>https://www.hanachiru-blog.com/entry/2020/05/28/120000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
