随笔分类 - Python
PySide6:使用Python第三方库的隐蔽问题
摘要:PySide6:使用Python第三方库的隐蔽问题 问题描述 PySide6使用QChart的问题,我在自己机器上和服务器上都发现无法导入QChart模块,可是我用PySide6的其他模块就好好的... 解决方案 鉴于PySide6官网都是直接这样导入模块的,因此肯定不是代码的问题。遂怀疑是所安装的
Python日志logging模块
摘要:Python日志logging模块 logging Python 的日志记录工具 — Python 3.12.2 文档 Python logging模块的基本使用、进阶使用详解_python中logging模块详解-CSDN博客 logging模块架构 日志级别 默认的级别是 “WARNING“,意
Python命令行参数解析
摘要:Python命令行参数解析 平时用Python写一些小工具,解析命令行参数是非常有必要的。 获取命令行参数 在Python中命令行参数通过 sys.argv 传递,它是一个list,其中的元素为字符串。 import sys def cli_parser(): print(f"参数个数: {len(
PyQt报错:Cannot load backend 'Qt5Agg' which requires the 'qt5' interactive framework, as 'headless' is currently running
摘要:PyQt报错:could not load Qt platform plugin "xcb" even though it was found 问题描述 在远程链接ubuntu虚拟机进行开发时,报错。 qt.qpa.xcb: could not connect to display qt.qpa.p
PyQt报错:qt.qpa.plugin: Could not find the Qt platform plugin
摘要:PyQt报错:qt.qpa.plugin: Could not find the Qt platform plugin 解决方法 搜索plugins\platforms,找到一个platform文件夹(比如F:\conda_env\envs\ml\Lib\site-packages\PyQt5\Qt