예제 #1
0
 def __init__(self):
     PathUtils.initDir()  # 创建目录
     # 数据库操作
     dbUtils = DbUtils('config_3_series')
     # self.queryItems = dbUtils.select({"id": 511})
     # self.queryItems = dbUtils.select(None)
     self.queryItems = dbUtils.selectByPage(None, 0, 1)
예제 #2
0
파일: 7_Excel.py 프로젝트: xzmeng/autohome
 def save(self):
     PathUtils.initDir()
     rootPath = PathUtils.getRootPath()
     self.workBook.save(rootPath + '/output/config/config_6_config.xlsx')
예제 #3
0
 def save(self, workBook, folderName, sheetName):
     PathUtils.initDir()
     rootPath = PathUtils.getRootPath()
     workBook.save(rootPath + '/output/%s/%s.xlsx' % (folderName, sheetName))
예제 #4
0
 def __init__(self):
     PathUtils.initDir()  # 初始化文件夹
     dbUtils = DbUtils('config_5_spec')  # 加载数据库
     self.queryItems = dbUtils.select(None)  # 查询数据