[Python-ideas] pathlib.Path.walk - Google Groups

文章推薦指數: 80 %
投票人數:10人

import pathlib directory = pathlib.Path(get_dir()) # do things with directory for root, dirs, files os.walk(directory): root = Path(root) for f in files: . SearchImagesMapsPlayYouTubeNewsGmailDriveMore»Help|ReportanissueaboutGoogleGroups|Keyboardshortcuts|Signin



請為這篇文章評分?