Loading

上一页 1 ··· 26 27 28 29 30 31 32 33 34 ··· 76 下一页
摘要: 背景 需要使用到matplotlib 3.5的新特性决定升级 搜索pip源发现python 3.6最高支持matplotlib 3.2 而matplotlib 3.5仅适配python 3.7+ 安装 一定不要尝试卸载18.04自带python 3.6否则系统会崩溃 sudo apt install 阅读全文
posted @ 2021-12-10 17:24 azureology 阅读(464) 评论(0) 推荐(0)
摘要: 复现 import matplotlib.pyplot as plt import pandas as pd 报错 module functions cannot set METH_CLASS or METH_STATIC 解决 交换导入顺序 import pandas as pd import m 阅读全文
posted @ 2021-12-08 11:11 azureology 阅读(507) 评论(0) 推荐(0)
摘要: 举例 使用标准输入输出配合管道传输压缩数据比单纯scp更加高效 (cd sourcedir; tar -cf - .) | (cd targetdir; tar -xf -) tar -C sourcedir -cf - . | tar -C targetdir -xf - tar cvjf - * 阅读全文
posted @ 2021-12-03 17:59 azureology 阅读(167) 评论(2) 推荐(0)
摘要: 背景 项目中使用unordered_map保存方便使用key快速索引对象 需要每次使用后根据key判断是否删除过期pair代码如下: for(auto& pair : m) { if(!condition(pair.first)) { m.erase(pair.first); } } 捉虫 开始代码 阅读全文
posted @ 2021-12-03 13:19 azureology 阅读(1108) 评论(0) 推荐(0)
摘要: 描述 使用grep -rn 命令递归搜索文本文件中的字符串,无法找到结果 手动查看后确定包含目标字段 原因 这个问题在grep --help就有答案 Output control: -d, --directories=ACTION how to handle directories; ACTION 阅读全文
posted @ 2021-12-01 22:52 azureology 阅读(306) 评论(0) 推荐(0)
上一页 1 ··· 26 27 28 29 30 31 32 33 34 ··· 76 下一页