<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>minesot</author_name>
  <author_url>https://blog.hatena.ne.jp/minesot/</author_url>
  <blog_title>デジタルパソロジー</blog_title>
  <blog_url>https://www.ai-pathology.com/</blog_url>
  <categories>
    <anon>Python</anon>
    <anon>スクリプト</anon>
    <anon>便利技</anon>
  </categories>
  <description>Python を使って、選択したフォルダ内の全てのファイルを一括でリネームする方法です。このスクリプトは、大量のファイルを一度にリネームする必要がある場合に便利です。 集めまくっておいた画像データを通し番号にしたい場合、頭に特定の語（日付やプロジェクト名など）をつけて元のファイル名を残しつつリネームしたいなどで使えるようにしています。 リネームするためのスクリプト Python スクリプト（新しいファイル名として番号だけをつけるバージョン） Copy import os def rename_files_with_numbers(directory): for i, filename in e…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.ai-pathology.com%2Fentry%2F2023%2F07%2F12%2F115356&quot; title=&quot;Python でフォルダ内のファイルを一括でリネームする方法 - デジタルパソロジー&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/m/minesot/20230709/20230709092304.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2023-07-12 21:00:00</published>
  <title>Python でフォルダ内のファイルを一括でリネームする方法</title>
  <type>rich</type>
  <url>https://www.ai-pathology.com/entry/2023/07/12/115356</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
