範例1:路徑下所有檔案。 import glob for name in glob.glob('tmp/*'): print(name). 這個模式會匹配所有的路徑名,但是不會遞歸搜索到子目錄。
確定! 回上一頁