Pathオブジェクトではparent属性とstem属性を組み合わせる from pathlib import Path path = Path(path) print(f'path.stem: {path.stem}') ...
確定! 回上一頁