basename (path) to extract the filename from the end of path and return it as a string. filename = os.path.basename("path/to/file/sample ...
確定! 回上一頁