<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>gothedistance</author_name>
  <author_url>https://blog.hatena.ne.jp/gothedistance/</author_url>
  <blog_title>Life is Really Short, Have Your Life!!</blog_title>
  <blog_url>https://aroundthedistance.hatenadiary.jp/</blog_url>
  <categories>
    <anon>Python</anon>
  </categories>
  <description>「yieldを実行すると、ジェネレーターを生成し現在の処理を中断したまま保持する事が出来ます」って何を言ってんのかサッパリわからなかった。やっとピンとくるコードがあった。What does the yield keyword do in Python?stackoverflow.com # -*- coding: utf-8 -*- def f(): yield 1 yield 2 yield 3 gen = f() #ジェネレータオブジェクトが返ってくるだけで #実際の値は関数を呼んでも生成されない。 #ジェネレータはイテレータの1種だから、 #forで回さないと値を生成しない print(…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Faroundthedistance.hatenadiary.jp%2Fentry%2F2015%2F06%2F11%2F171843&quot; title=&quot;yield 構文がやっとピンと来たかもしれない - Life is Really Short, Have Your Life!!&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-11 17:18:43</published>
  <title>yield 構文がやっとピンと来たかもしれない</title>
  <type>rich</type>
  <url>https://aroundthedistance.hatenadiary.jp/entry/2015/06/11/171843</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
