透過split可把路徑分開,而透過join就可把路徑結合起來。 ... import os for path, dirname, filename in os.walk("dir_test"): print(path) for i in filename: ...
確定! 回上一頁