摘要: git checkout [commit-id] filename 恢复某一文件到指定版本 阅读全文
posted @ 2020-10-12 14:01 gooneybird 阅读(68) 评论(0) 推荐(0)
摘要: 转自:https://blog.csdn.net/zedelei/article/details/90208183 方式一:修改配置文件(需停止docker服务)1、停止docker服务systemctl stop docker.service(关键,修改之前必须停止docker服务)2、vim / 阅读全文
posted @ 2020-09-22 15:18 gooneybird 阅读(4200) 评论(0) 推荐(1)
摘要: 参考链接:https://my.oschina.net/tigerBin/blog/2049922 Dual ABI GCC 5 以后的版本,将std::string 与 std::list 从新实现了,对于c++03 与 c++11 来说, list<int> 从原有的 std::list<int 阅读全文
posted @ 2020-09-11 19:10 gooneybird 阅读(853) 评论(0) 推荐(0)
摘要: https://blog.csdn.net/lidew521/article/details/85268374 https://www.jianshu.com/p/8d4c710c579e chattr是用来更改文件属性,lsattr可用来查看文件的属性,执行命令lsattr /etc/sysctl 阅读全文
posted @ 2020-09-02 16:27 gooneybird 阅读(637) 评论(0) 推荐(0)
摘要: C++98中,支持在类声明的时候使用等号"="初始化类中静态成员常量,这种声明方式我们称之为"就地"声明。 C++98要求静态成员必须满足常量性,而且类型必须是整型或者枚举型,而非静态成员变量的初始化则必须在构造函数中进行。 在C++11中,允许使用等号=或者花括号{}进行就地的非静态成员变量初始化 阅读全文
posted @ 2020-08-17 14:27 gooneybird 阅读(255) 评论(0) 推荐(0)
摘要: OpenMP Hello World 1 //omp.cc 2 #include <iostream> 3 #include <omp.h> 4 5 int main() 6 { 7 #pragma omp parallel for 8 for (char i = 'a'; i <= 'z'; i+ 阅读全文
posted @ 2020-08-15 16:43 gooneybird 阅读(2759) 评论(0) 推荐(0)
摘要: 1 /** 2 * self defined struct as the key of map in c++ 3 */ 4 struct K { 5 int n1, n2; 6 K(int i, int j): n1(i), n2(j) {} 7 // the operator < defines 阅读全文
posted @ 2020-08-11 19:45 gooneybird 阅读(506) 评论(0) 推荐(0)
摘要: 静态成员函数编译时出现 static成员"Cannot declare member function ...to have static linkage"错误 解决方案 在.cpp文件中去掉static关键字 static的用法有好几种,在类中成员函数的声明使用static关键字则是规定说该成员函 阅读全文
posted @ 2020-08-10 19:01 gooneybird 阅读(1328) 评论(0) 推荐(0)
摘要: 进入命令行Debug模式,python -m pdb test.py h:(help)帮助 l:(list)列出源码 l 列出当前执行语句周围11条代码 l first 列出first行周围11条代码 l first second 列出first--second范围的代码,如果second<firs 阅读全文
posted @ 2020-06-23 14:04 gooneybird 阅读(155) 评论(0) 推荐(0)
摘要: 1. 生成配置文件 $jupyter notebook --generate-config 2. 生成密码 打开python,创建密码 >>> from notebook.auth import passwd >>> passwd() Enter password: Verify password: 阅读全文
posted @ 2020-05-29 13:18 gooneybird 阅读(147) 评论(0) 推荐(0)