会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
胸怀丶若谷
每一天都是在我身边的最后一天
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
19
20
21
22
23
24
25
26
27
···
45
下一页
2021年4月30日
PyQt5清除数据(部分控件)
摘要: # 清除文本框 self.textEdit_detail.clear() # 清楚表格所有行 self.tableWidget.setRowCount(0) self.tableWidget.clearContents() # 清除进度条 self.progressBar.reset() app.p
阅读全文
posted @ 2021-04-30 12:38 胸怀丶若谷
阅读(2428)
评论(0)
推荐(0)
2021年4月25日
判断文件是否存在
摘要: result = os.path.exists(self.MailSendingStatusPath) if result == True: self.append_status_report() elif result == False: self.create_new_status_report
阅读全文
posted @ 2021-04-25 20:08 胸怀丶若谷
阅读(107)
评论(0)
推荐(0)
2021年4月24日
peewee模块更改数据-sqlite
摘要: 更改数据 from playhouse.migrate import *# SQLite example: my_db = SqliteDatabase('my_database.db') migrator = SqliteMigrator(my_db)# 使用migrate()执行一个或多个操作
阅读全文
posted @ 2021-04-24 13:32 胸怀丶若谷
阅读(327)
评论(0)
推荐(0)
Python操纵数据库:peewee
摘要: 模块名:peewee 安装方法: pip install peewee 官方教程:http://docs.peewee-orm.com/en/latest/
阅读全文
posted @ 2021-04-24 12:51 胸怀丶若谷
阅读(122)
评论(0)
推荐(0)
2021年4月23日
PyQt5调用主窗口
摘要: import sysfrom ui.MainWindow import Ui_Form from PyQt5.QtWidgets import QApplication, QMainWindowclass MyMainWindow(QMainWindow, Ui_Form): def __init_
阅读全文
posted @ 2021-04-23 19:32 胸怀丶若谷
阅读(241)
评论(0)
推荐(0)
2021年4月13日
AttributeError:module‘win32com.gen_py has no attribute ‘CLSIDToClassMap‘
摘要: 解决方案如下: 1. 运行如下代码,找到文件所在位置 from win32com.client.gencache import EnsureDispatch import sys xl = EnsureDispatch("Word.Application") print(sys.modules[xl
阅读全文
posted @ 2021-04-13 17:46 胸怀丶若谷
阅读(1868)
评论(0)
推荐(0)
2021年3月13日
查看电脑操作时间
摘要: win+r , 弹出窗口输入recent,回车即可
阅读全文
posted @ 2021-03-13 20:16 胸怀丶若谷
阅读(240)
评论(0)
推荐(0)
2021年3月3日
AttributeError: 'EmailUse' object has no attribute 'SendMail'
摘要: 错误原因:函数名与模块名重复 解决方案:不要将函数名与模块名重复
阅读全文
posted @ 2021-03-03 15:57 胸怀丶若谷
阅读(230)
评论(0)
推荐(0)
2021年2月26日
nuitka 将程序编译为单个exe
摘要: 原文链接:https://github.com/Nuitka/Nuitka 在Windows上,有两种模式,一种是将其复制到您公司指定的AppData,也将其用作缓存,另一种是在临时目录中进行。您需要执行此操作。 #创建一个二进制文件,将其解压缩到一个临时文件夹中 python -m nuitka
阅读全文
posted @ 2021-02-26 14:52 胸怀丶若谷
阅读(1834)
评论(0)
推荐(0)
PyQt5实时刷新
摘要: 对于执行很耗时的程序来说,由于PyQt需要等待程序执行完毕才能进行下一步,这个过程表现在界面上就是卡顿,而如果需要执行这个耗时程序时不断的刷新界面。那么就可以使用QApplication.processEvents(),那么就可以一边执行耗时程序,一边刷新界面的功能,给人的感觉就是程序运行很流畅,因
阅读全文
posted @ 2021-02-26 10:13 胸怀丶若谷
阅读(1329)
评论(0)
推荐(0)
上一页
1
···
19
20
21
22
23
24
25
26
27
···
45
下一页
公告