<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>HK29</author_name>
  <author_url>https://blog.hatena.ne.jp/HK29/</author_url>
  <blog_title>PythonとVBAで世の中を便利にする</blog_title>
  <blog_url>https://hk29.hatenablog.jp/</blog_url>
  <categories>
    <anon>Python</anon>
    <anon>抽出</anon>
    <anon>置換</anon>
  </categories>
  <description>本記事では、下図のように多数のファイル名をrename（リネーム）する雛形コードを載せました。 上の例では、各ファイル名にある「スライド」を「slide_」にして、ファイル番号「1, 2, …, 10…」を「01, 02, …, 10…」のように2桁の0埋めに、ファイル名を変更します。 ■本プログラム #!/usr/bin/env python # coding: utf-8 # In[1]: import os import glob, re # 指定したフォルダ内にある複数の.pngファイルのパスをリストで取得する file_path_list = glob.glob('./プレゼンテーシ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhk29.hatenablog.jp%2Fentry%2F2022%2F08%2F04%2F233709&quot; title=&quot;Python 大量のファイル名を一括で変更する - PythonとVBAで世の中を便利にする&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://cdn-ak.f.st-hatena.com/images/fotolife/H/HK29/20220804/20220804233249.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2022-08-04 23:37:09</published>
  <title>Python 大量のファイル名を一括で変更する</title>
  <type>rich</type>
  <url>https://hk29.hatenablog.jp/entry/2022/08/04/233709</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
