04 2021 档案
摘要:# 清除文本框 self.textEdit_detail.clear() # 清楚表格所有行 self.tableWidget.setRowCount(0) self.tableWidget.clearContents() # 清除进度条 self.progressBar.reset() app.p
阅读全文
摘要:result = os.path.exists(self.MailSendingStatusPath) if result == True: self.append_status_report() elif result == False: self.create_new_status_report
阅读全文
摘要:更改数据 from playhouse.migrate import *# SQLite example: my_db = SqliteDatabase('my_database.db') migrator = SqliteMigrator(my_db)# 使用migrate()执行一个或多个操作
阅读全文
摘要:模块名:peewee 安装方法: pip install peewee 官方教程:http://docs.peewee-orm.com/en/latest/
阅读全文
摘要:import sysfrom ui.MainWindow import Ui_Form from PyQt5.QtWidgets import QApplication, QMainWindowclass MyMainWindow(QMainWindow, Ui_Form): def __init_
阅读全文
摘要:解决方案如下: 1. 运行如下代码,找到文件所在位置 from win32com.client.gencache import EnsureDispatch import sys xl = EnsureDispatch("Word.Application") print(sys.modules[xl
阅读全文