☰

Current Page

ファイル名を取得
History

Main Menu

Home Overview Latest Changes

ファイル名を取得

  1. python3
  2. pathlib

Python, pathlibでファイル名・拡張子・親ディレクトリを取得 | note.nkmk.me

p = Path("./hoge")
p.name

このページの著者: takanotume24

This version of the page was edited by takanotume24 at 2021-10-11 06:35:43. View the most recent version.