指某東西的用途basename 從那以後這裡有點混亂os.path.basename("/path/to/somefile.ext") 會回來 ... 我很驚訝沒有人提到過 pathlib 然而, pathlib 太棒瞭!
確定! 回上一頁