pathlib has suffix as an attribute of the Path object:,The with_suffix ... import osos.path.basename('/path/file.suffix') # file.suffix.
確定! 回上一頁