12 2023 档案
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
ubuntu解决软件安装依赖报错
摘要:ubuntu解决软件安装依赖报错 问题描述 安装yum时,提示 yum : 依赖: python-lzma 但是它将不会被安装 依赖: python-sqlitecachec 但是它将不会被安装 依赖: python-urlgrabber 但是它将不会被安装 E: 无法修正错误,因为您要求某些软件包
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
解决MySQL的C++驱动报错:‘my_bool’ was not declared in this scope; did you mean ‘bool’?
摘要:解决MySQL的C++驱动报错:‘my_bool’ was not declared in this scope; did you mean ‘bool’? 问题描述 此问题仅影响 MySQL; MariaDB将继续支持。 尝试使用 MySQL 8.0.1 进行编译时发生以下构建错误,无法识别 m_
解决Ubuntu无法双击安装deb包
摘要:解决Ubuntu无法双击安装deb包 解决方法 检查是否使用的是“软件安装”工具打开,不要使用“存档管理器”打开; 使用命令安装: sudo apt install ./xxxxx.deb # 对于Debian 和基于 Debian 的系统,可用 dpkg -i Ubuntu 系统 dpkg 命令使