Either way, you could use os.walk to do this: ... [x[0] for x in os.walk(directory)] ... from pathlib import Path paths = list(Path('myhomefolder', ...
確定! 回上一頁