How do I list all files of a directory? - Stack Overflow

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

get the full path of only files in the current directory. import os from os import listdir from os.path import isfile, join cwd = os.getcwd() onlyfiles = [os.path.join(cwd, ... JoinStackOverflowtolearn,shareknowledge,andbuildyourcareer.



請為這篇文章評分?