<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>shinshin86</author_name>
  <author_url>https://blog.hatena.ne.jp/shinshin86/</author_url>
  <blog_title>at backyard</blog_title>
  <blog_url>https://shinshin86.hateblo.jp/</blog_url>
  <categories>
    <anon>Python</anon>
    <anon>備忘録</anon>
  </categories>
  <description>自分用備忘録。 Python でゼロ埋めで数値出力をする場合、いくつかの方法があるが、Python3.6 以降であればフォーマット文字列(f文字列などとも呼ばれたりしているみたい)を使ってサクッと書くことができる。 (このフォーマット文字列を利用しない場合は format() を利用して実現するようだが、書き方的にはフォーマット文字列のほうがサクッとかけるようだ←私はまだどちらの書き方もそこまで使っていないので、いまいちここらへんの違いは実感していない) フォーマット文字列を使ってゼロパディングで数値を出力するサンプル サンプルを下記に書く。３桁のゼロ埋め数値を101まで出力するだけのサンプル…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshinshin86.hateblo.jp%2Fentry%2F2022%2F01%2F28%2F230309&quot; title=&quot;Pythonでゼロ埋め(ゼロパディング)を実現するためのメモ - at backyard&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>2022-01-28 23:03:09</published>
  <title>Pythonでゼロ埋め(ゼロパディング)を実現するためのメモ</title>
  <type>rich</type>
  <url>https://shinshin86.hateblo.jp/entry/2022/01/28/230309</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
