会员
周边
新闻
博问
闪存
赞助商
YouClaw
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Txwtech
鸿蒙系统APP开发,QT,C#,python,视觉开发 cdtxw@foxmail.com
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
52
53
54
55
56
57
58
59
60
···
129
下一页
2023年12月29日
python No module named 'pynput' pyinstaller xxx.spec打包后,执行exe报错
摘要: 切换到了一个不同的模块pywinauto,它是由pyinstaller官方支持的,并使用: import pywinauto pywinauto.mouse.double_click(button='left', coords=(0, 0)) 复制 翻译 搜索 复制
阅读全文
posted @ 2023-12-29 09:16 txwtech
阅读(194)
评论(0)
推荐(0)
2023年12月28日
pyinstaller打包python程序报错
摘要: pyinstaller打包python程序报错报错信息如下: option(s) not allowed: --onedir/--onefilemakespec options not valid when a .spec file is given 解决:不使用 -F 参数 pyinstaller
阅读全文
posted @ 2023-12-28 15:51 txwtech
阅读(678)
评论(0)
推荐(0)
python pyinstaller打包exe后ModuleNotFoundError: No module named 'win32gui' python pycharm
摘要: ModuleNotFoundError: No module named 'win32gui' 管理员方式CMD打开命令提示符,以管理员权限运行pip install pypiwin32,重新安装 确保main.spec的路径正确: 重新打包: 其它参考:https://www.cnblogs.co
阅读全文
posted @ 2023-12-28 14:41 txwtech
阅读(381)
评论(0)
推荐(0)
python pycharm设置断点快捷键
摘要: python pycharm设置断点快捷键 CTRL+F8 翻译 搜索 复制
阅读全文
posted @ 2023-12-28 13:28 txwtech
阅读(63)
评论(0)
推荐(0)
import win32console报错
摘要: 安装 pypiwin32 执行: pip install pypiwin32 翻译 搜索 复制
阅读全文
posted @ 2023-12-28 12:00 txwtech
阅读(30)
评论(0)
推荐(0)
python pyinstaller同时打包多个py文件
摘要: python pyinstaller同时打包多个py文件 1.运行pyinstaller main.py生成main.spec 2.修改main.spec,打包的文件需要放在main.py的相同目录 3.添加打包的文件 4.执行pyinstaller main.spec 5.找到exe文件目录并测试
阅读全文
posted @ 2023-12-28 11:29 txwtech
阅读(884)
评论(0)
推荐(0)
pyinstaller exe文件运行闪退问题跟踪
摘要: pyinstaller main.py生成main.exe后,进入main.exe目录后,按如下方式运行,查看错误 翻译 搜索 复制
阅读全文
posted @ 2023-12-28 11:02 txwtech
阅读(59)
评论(0)
推荐(0)
python main.py调用另外一个py文件中的函数与类
摘要: python如何调用另外一个py文件中的函数与类 mian.py calc.py mian.py 中导入import calc 函数与类对象调用方法程序启动位置:if __name__ == '__main__': print('add:', calc.func_add(6,3))print('mi
阅读全文
posted @ 2023-12-28 10:28 txwtech
阅读(370)
评论(0)
推荐(0)
python调用类创建类
摘要: python调用类创建类 并行迭代 names = ['a1', 'a2', 'a3'] ages = [11, 22, 66] for i in range(len(ages)): print(names[i], 'is', ages[i], 'years old') list_conbine =
阅读全文
posted @ 2023-12-28 10:08 txwtech
阅读(42)
评论(0)
推荐(0)
python tkinter 简单编辑器demo打开与保存文件
摘要: python tkinter 简单编辑器demo打开与保存文件 def load_file(): with open(filename.get()) as file: contents.delete('1.0', END) contents.insert(INSERT, file.read()) d
阅读全文
posted @ 2023-12-28 08:31 txwtech
阅读(131)
评论(0)
推荐(0)
上一页
1
···
52
53
54
55
56
57
58
59
60
···
129
下一页