We can define a function that uses os.path.split to break out all of the parts of a file or directory path: import os, sys def splitall(path): allparts ...
確定! 回上一頁