<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tsubakurame-1913</author_name>
  <author_url>https://blog.hatena.ne.jp/tsubakurame-1913/</author_url>
  <blog_title>鳥の巣箱</blog_title>
  <blog_url>https://birdhouse.hateblo.jp/</blog_url>
  <categories>
    <anon>Programing</anon>
    <anon>Programing-Python</anon>
  </categories>
  <description>一つの問題です。 よくあるRaspberry PiのGPIOを制御するプログラムです。 以下のようなソースコードがあって import RPi.GPIO as GPIO import time GPIO.setmode(GPIO.BOARD) GPIO.setup(13, GPIO.OUT) while True: GPIO.output(13, True) time.sleep(1) GPIO.output(13, False) time.sleep(1) GPIO.cleanup() これを実行中に、Ctrl-Cやkillなどで停止させた場合、GPIO.cleanup()は実行されるでしょ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbirdhouse.hateblo.jp%2Fentry%2F2021%2F04%2F05%2F160844&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>2021-04-05 16:08:44</published>
  <title>Pythonで終了処理を実行させる</title>
  <type>rich</type>
  <url>https://birdhouse.hateblo.jp/entry/2021/04/05/160844</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
