<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>nishiohirokazu</author_name>
  <author_url>https://blog.hatena.ne.jp/nishiohirokazu/</author_url>
  <blog_title>西尾泰和のはてなダイアリー</blog_title>
  <blog_url>https://nishiohirokazu.hatenadiary.org/</blog_url>
  <categories>
  </categories>
  <description>エイプリルフールなので嘘みたいなことをやってみた。 for x in range(5): print(x) MESSAGE = &quot;The value is&quot; class _(switch(x)): @case(0) def _(): print(MESSAGE, &quot;zero!&quot;) @case(1) def _(): print(MESSAGE, &quot;one!&quot;) @case(2) def _(): print(MESSAGE, &quot;twei!&quot;) @case_else def _(): print(MESSAGE, &quot;something else!!&quot;) MESSAGEはちゃんと外のスコープを見れ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnishiohirokazu.hatenadiary.org%2Fentry%2F20090401%2F1238562617&quot; title=&quot;Python3.0でswitch文を作りました - 西尾泰和のはてなダイアリー&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>2009-04-01 14:10:17</published>
  <title>Python3.0でswitch文を作りました</title>
  <type>rich</type>
  <url>https://nishiohirokazu.hatenadiary.org/entry/20090401/1238562617</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
