摘要:
#! /usr/bin/env python #_*_coding:utf-8_*_ ''' Created on 2017-5-12 @author: Win-1 ''' import re,os,time import xlwt #读取SNRt值 def readSNRt(): hotimeList = [] SrcMacList = [] BMacList = []... 阅读全文
posted @ 2017-05-22 19:08
hubangsheng
阅读(2265)
评论(0)
推荐(1)
摘要:
import os import os.path rootdir = “遍历的文件夹路径” # 指明被遍历的文件夹 for parent,dirnames,filenames in os.walk(rootdir): #三个参数:分别返回1.父目录 2.所有文件夹名字(不含路径) 3.所有文件名字 for dir... 阅读全文
posted @ 2017-05-22 15:45
hubangsheng
阅读(634)
评论(0)
推荐(0)

浙公网安备 33010602011771号