
python
爱吃鱼但嫌鱼刺多
这个作者很懒,什么都没留下…
展开
-
【无标题】
import osclass dir: origin_path=[] def __init__(self,file_dir): for root, dirs, files in os.walk(file_dir): # print(root) # 当前目录路径 # print(dirs) # 当前路径下所有子目录 # print(files) for name in f原创 2022-01-17 13:36:53 · 392 阅读 · 0 评论 -
2021-09-09
#coding=utf-8import xlrdfrom openpyxl import load_workbookimport xlutils.copy# sheet = workbook.active# sheet.insert_cols(idx=1,amount=1)def inserthead(filename="C:\\Users\\Administrator\\Desktop\\123.xlsx"): workbook = load_workbook(filename)原创 2021-09-09 23:24:41 · 120 阅读 · 0 评论 -
2021-08-10 查找 table 字样的函数是否有sql_without_rowid关键词
import osstr="sql_without_rowid"filesyes = []value = {}recordnumber=0def list_all_files(rootdir="C:\\Users\\shitk\\Desktop\\nds"): _files = [] list = os.listdir(rootdir) for i in range(0,len(list)): path = os.path.join(r原创 2021-08-12 09:39:49 · 172 阅读 · 0 评论