from pathlib import Path Path('/path/file.suffix').stem # file. The suffix is the final part of a file path, usually indicating the file type.
確定! 回上一頁