if os.path.exists(top_dir)==False: print "not exists" return if os.path.isdir(top_dir)==False: print "not a dir" return for dir_path,subpaths,files in os.walk(top_dir,False): for file in files: file_path=os.path.join(dir_path,file) ...
www.dbjr.com.cn/article/426...htm 2025-6-10