<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>jgs</author_name>
  <author_url>https://blog.hatena.ne.jp/jgs/</author_url>
  <blog_title>Pythonでしょ！</blog_title>
  <blog_url>https://jgs.hatenadiary.jp/</blog_url>
  <categories>
  </categories>
  <description>こんにちは Co-RoutineはPythonの中にどういうふうに 利用できるのでしょうかコルーチンとは 通常の関数/Functionはロジックを実行して 最後returnで終了する コルーチンは実行を中断して、続きから処理を 再開できます。 Pythonのジェネレーター(Generator)は Co-Routineのような動きを実現しています。 シンプルの例をあげます。 #!/usr/bin/env python # -*- coding: utf-8 -*- #Generator定義 def g(): yield &quot;hello&quot; yield &quot;python&quot; yield &quot;!&quot; #Gene…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fjgs.hatenadiary.jp%2Fentry%2F20150208%2F1423377529&quot; title=&quot;Pythonのコルーチン(co-routine) - 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-02-08 15:38:49</published>
  <title>Pythonのコルーチン(co-routine)</title>
  <type>rich</type>
  <url>https://jgs.hatenadiary.jp/entry/20150208/1423377529</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
