<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kentaPt</author_name>
  <author_url>https://blog.hatena.ne.jp/kentaPt/</author_url>
  <blog_title>kentaPtの日記</blog_title>
  <blog_url>https://kentapt.hatenablog.com/</blog_url>
  <categories>
    <anon>tips</anon>
    <anon>matlab</anon>
    <anon>python</anon>
  </categories>
  <description>数字の表記を、1234ではなく、001234のように特定の数字などで埋めたい場合があると思います。この記事では、MATLABとpythonにおけるコードについて自分用のメモとして残したいと思います。例えば、 123, 18, 1931...のように桁数の違う数字を含むファイル名において、00123.jpg, 00018.jpg, 01931.jpgのようにすると統一性が出る file1.txt, file2.txt, file10.txtを並び替えると、file1.txt, file10.txt, file2.txtという順番になる場合がある。ファイル名からゼロで埋めると数字の大きさ（小ささ）…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkentapt.hatenablog.com%2Fentry%2F2022%2F05%2F08%2F211433&quot; title=&quot;文字列・数値に対してゼロ埋めをし、000123.jpgのような文字列を作成する（ゼロパディング） - kentaPtの日記&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-05-08 21:14:33</published>
  <title>文字列・数値に対してゼロ埋めをし、000123.jpgのような文字列を作成する（ゼロパディング）</title>
  <type>rich</type>
  <url>https://kentapt.hatenablog.com/entry/2022/05/08/211433</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
