上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 96 下一页
摘要: 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的小张 阅读(126) 评论(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的小张 阅读(592) 评论(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的小张 阅读(111) 评论(0) 推荐(0) 编辑
摘要: 读取ini格式的文件,并创建一个excel文件,且为每个节点创建一个sheet,然后将节点下的键值写入到excel中,按照如下格式。首行,字体白色 & 单元格背景色蓝色,内容均居中,带边框。 ini文件如下: 代码如下: import osimport configparserfrom openpy 阅读全文
posted @ 2020-12-30 16:05 干it的小张 阅读(239) 评论(0) 推荐(0) 编辑
摘要: # ############### 1. 基于csv的用户注册和认证 #############import os# 文件路径处理base_dir = os.path.dirname(os.path.abspath(__file__))db_file_path = os.path.join(base 阅读全文
posted @ 2020-12-30 15:38 干it的小张 阅读(542) 评论(0) 推荐(0) 编辑
上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 96 下一页