<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>merrywhite</author_name>
  <author_url>https://blog.hatena.ne.jp/merrywhite/</author_url>
  <blog_title>CAFE BREAK</blog_title>
  <blog_url>https://cafebreak.hatenablog.com/</blog_url>
  <categories>
    <anon>Python</anon>
  </categories>
  <description>Python 日付（日、週、月）で実行する処理をif文で分岐させる方法について調べていたのですが、すごくわかりやすく説明されているサイトがあったので、参考にさせてもらいました。 条件分岐を行うif文、if文を使って時間帯別に異なる挨拶をするHelloWorldを作るという内容です。 サイトに説明されているのは時間帯になりますが、これを応用して、現在の日付を取得して条件にするということが可能です。 サイトより時間に関するところだけ抜粋させてもらいました。 def get(self):d = getJstTime() if 6 &lt; d.hour &lt; 12:self.response.out.wri…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fcafebreak.hatenablog.com%2Fentry%2F2024%2F01%2F23%2F071542&quot; title=&quot;Python 日付（日、週、月）で実行する処理をif文で分岐させる - CAFE BREAK&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://thumbnail.image.rakuten.co.jp/@0_mall/syatihoko/cabinet/02548057/1_zdr025p_ninki.jpg?_ex=128x128</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2024-01-23 07:15:42</published>
  <title>Python 日付（日、週、月）で実行する処理をif文で分岐させる</title>
  <type>rich</type>
  <url>https://cafebreak.hatenablog.com/entry/2024/01/23/071542</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
