上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 96 下一页
摘要: import xlwtnew_workbook = xlwt.Workbook()worksheet = new_workbook.add_sheet("new_test")worksheet.write(0, 0, "test")new_workbook.save(r"D:\mycode\file 阅读全文
posted @ 2020-12-31 15:32 干it的小张 阅读(93) 评论(0) 推荐(0)
摘要: import xlrdimport osxlsx = xlrd.open_workbook(r'D:\mycode\files\7月下旬入库表.xlsx')# 用索引table = xlsx.sheet_by_index(0)# 用工作表名# table = xlsx.sheet_by_name(" 阅读全文
posted @ 2020-12-31 15:25 干it的小张 阅读(137) 评论(0) 推荐(0)
摘要: import osimport shutilimport requests# 文件路径处理base_dir = os.path.dirname(os.path.abspath(__file__))download_folder = os.path.join(base_dir, 'files', 'p 阅读全文
posted @ 2020-12-30 16:22 干it的小张 阅读(665) 评论(0) 推荐(0)
摘要: import osimport requestsfrom xml.etree import ElementTree as ETfrom openpyxl import workbook# 处理文件路径base_dir = os.path.dirname(os.path.abspath(__file_ 阅读全文
posted @ 2020-12-30 16:13 干it的小张 阅读(124) 评论(0) 推荐(0)
摘要: 读取ini格式的文件,并创建一个excel文件,且为每个节点创建一个sheet,然后将节点下的键值写入到excel中,按照如下格式。首行,字体白色 & 单元格背景色蓝色,内容均居中,带边框。 ini文件如下: 代码如下: import osimport configparserfrom openpy 阅读全文
posted @ 2020-12-30 16:05 干it的小张 阅读(325) 评论(0) 推荐(0)
上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 96 下一页