import os for dirPath, dirNames, fileNames in os.walk("/python/demo/"): print dirPath for f in fileNames: print os.path.join(dirPath, f) Python 執行結果:
確定! 回上一頁