反轉程序: python-列出目錄內的所有檔案 - handyopen.com

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

#!/usr/bin/python #-*- coding:utf8 -*- import os path = '/tmp' for tops, dirs, files in os.walk(path): for f in files: print(os.path.join(tops, f)) 第四行是載 ... handyopen.com Buythisdomain Thisdomainnamewillbeavailablesoon.Inquirenow! Thisdomainisexpired.Forrenewalinstructionsp



請為這篇文章評分?