<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tmg1998</author_name>
  <author_url>https://blog.hatena.ne.jp/tmg1998/</author_url>
  <blog_title>TIL</blog_title>
  <blog_url>https://tmg0525.hatenadiary.jp/</blog_url>
  <categories>
    <anon>Python</anon>
  </categories>
  <description>Pythonでintの値を0埋めする方法。 色々方法はあるらしい。3つだけ紹介(ほぼ同じだけど)。 f-stringの書き方も追記(2018/03/29) &gt;&gt;&gt; '{0:02d}'.format(1) '01' &gt;&gt;&gt; '{:02d}'.format(1) '01' &gt;&gt;&gt; '{:02}'.format(1) '01' str.formatについてはこちらのサイトに記載されていました。 {}の中に:を書き、その右側に指定したい書式の型を書くことで、書式を指定することができます。 02dというのが書式ということになる。どういう意味なのか？？ こちらのサイトによると:2dは２桁で空白埋めするとい…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftmg0525.hatenadiary.jp%2Fentry%2F2017%2F10%2F13%2F211755&quot; title=&quot;intを指定した桁でゼロ埋めする - TIL&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>2017-10-13 21:17:55</published>
  <title>intを指定した桁でゼロ埋めする</title>
  <type>rich</type>
  <url>https://tmg0525.hatenadiary.jp/entry/2017/10/13/211755</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
