[Python]ファイル名、フォルダ名の操作

パスからファイル名の部分だけ抽出する方法

import os
os.path.basename(filepath)

この記事が気に入ったらサポートをしてみませんか?