<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>terebiumu</author_name>
  <author_url>https://blog.hatena.ne.jp/terebiumu/</author_url>
  <blog_title>テレビウムのプログラミング</blog_title>
  <blog_url>https://terebiumu.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>この記事で紹介すること Pythonを使い、プログラム中で任意のファイル名を変更する方法 概要 本記事では、例えば「aaa.拡張子」と書かれたファイルを「bbb.拡張子」といった別の任意のファイル名に書き換える方法を紹介します。 なお、この方法で拡張子も変更できますが、正しい拡張子を指定しないとファイルを開けなくなってしまうので、拡張子を変更する際は注意してください。 コード紹介 使用するライブラリ 今回は、osをファイル名の変換用に使用します。 import os import glob ファイル名の変換 ここではは、「C:\Users\task_files\未_Task1.xlsx」を「C…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fterebiumu.hatenablog.com%2Fentry%2F2024%2F06%2F03%2F171606&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2024-06-03 17:16:06</published>
  <title>Pythonを使って簡単にファイル名変更方法 : 一括でファイル名を変更するサンプルコード付</title>
  <type>rich</type>
  <url>https://terebiumu.hatenablog.com/entry/2024/06/03/171606</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
