上一页 1 ··· 3 4 5 6 7 8 9 10 11 下一页
摘要: Python命令行参数解析 平时用Python写一些小工具,解析命令行参数是非常有必要的。 获取命令行参数 在Python中命令行参数通过 sys.argv 传递,它是一个list,其中的元素为字符串。 import sys def cli_parser(): print(f"参数个数: {len( 阅读全文
posted @ 2023-12-30 23:18 3的4次方 阅读(87) 评论(0) 推荐(0)
摘要: 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 阅读全文
posted @ 2023-12-26 14:58 3的4次方 阅读(748) 评论(0) 推荐(0)
摘要: ubuntu解决软件安装依赖报错 问题描述 安装yum时,提示 yum : 依赖: python-lzma 但是它将不会被安装 依赖: python-sqlitecachec 但是它将不会被安装 依赖: python-urlgrabber 但是它将不会被安装 E: 无法修正错误,因为您要求某些软件包 阅读全文
posted @ 2023-12-18 11:53 3的4次方 阅读(258) 评论(0) 推荐(0)
摘要: PyQt报错:qt.qpa.plugin: Could not find the Qt platform plugin 解决方法 搜索plugins\platforms,找到一个platform文件夹(比如F:\conda_env\envs\ml\Lib\site-packages\PyQt5\Qt 阅读全文
posted @ 2023-12-12 11:18 3的4次方 阅读(1589) 评论(0) 推荐(0)
摘要: 解决MySQL的C++驱动报错:‘my_bool’ was not declared in this scope; did you mean ‘bool’? 问题描述 此问题仅影响 MySQL; MariaDB将继续支持。 尝试使用 MySQL 8.0.1 进行编译时发生以下构建错误,无法识别 m_ 阅读全文
posted @ 2023-12-09 00:23 3的4次方 阅读(703) 评论(0) 推荐(0)
摘要: 解决Ubuntu无法双击安装deb包 解决方法 检查是否使用的是“软件安装”工具打开,不要使用“存档管理器”打开; 使用命令安装: sudo apt install ./xxxxx.deb # 对于Debian 和基于 Debian 的系统,可用 dpkg -i Ubuntu 系统 dpkg 命令使 阅读全文
posted @ 2023-12-09 00:18 3的4次方 阅读(1410) 评论(0) 推荐(0)
摘要: 报错:undefined reference to `WinMain' 错音是编译器找不到main()函数: 可能是 main() 函数没有加入编译。检查Makefile 可能缺少是main()函数,比如main拼写错误 可能是main()函数不再全局命名空间中,注意main()函数必须置于默认命名 阅读全文
posted @ 2023-11-26 23:24 3的4次方 阅读(1990) 评论(0) 推荐(0)
摘要: C语言预处理和宏 C语言宏的定义和宏的使用方法(#define) (biancheng.net) C/C++ 宏编程的艺术 - 知乎 (zhihu.com) 预处理命令 预处理是C语言的一个重要功能,由预处理程序完成。当对一个源文件进行编译时,系统将自动调用预处理程序对源程序中的预处理部分作处理,处 阅读全文
posted @ 2023-10-13 23:35 3的4次方 阅读(70) 评论(1) 推荐(0)
摘要: C++模板——待决名 概念 参考官方文档: 待决名 - cppreference.com 为什么C++模板类的非限定名、待决名名字查找不考虑待决基类? - 知乎 (zhihu.com)【需要较多的前置知识】 简单来说: template<typename T> struct X { void f_x 阅读全文
posted @ 2023-10-09 16:07 3的4次方 阅读(148) 评论(0) 推荐(0)
摘要: C语言逗号表达式和赋值表达式 笔试常考这个,没办法 #include <iostream> using namespace std; int main(int argc, char const* argv[]) { int a = 0, b = 0, c = 0, d = 0; // 1. 逗号表达 阅读全文
posted @ 2023-10-06 11:09 3的4次方 阅读(107) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 9 10 11 下一页