摘要: rpm 系 linux 系统中 /etc/yum.repo.d/ 目录下的 .repo 文件中的 $releasever 到底等于多少? 结论 对于 8 来说,通过以下命令 #/usr/libexec/platform-python -c 'import dnf, json; db = dnf.dn 阅读全文
posted @ 2022-06-18 11:36 绣幕 阅读(690) 评论(0) 推荐(0) 编辑
摘要: 关于 flask 的一个记录 代码 @auth.login_required @app.route('/add', methods=['POST']) def add(): if request.method != 'POST': return False print(request.json) r 阅读全文
posted @ 2022-05-25 22:04 绣幕 阅读(696) 评论(0) 推荐(0) 编辑
摘要: 工作中写了个 RestAPI 接口,然后想通过 crontab 任务,去定时调用接口。发现去拼接 post 请求真的不容易。对于单引号,双引号的使用。很懵,示例代码如下:对于 '$line' 处,单引号会原封不动地输出,所以会变成"name":"a",json 里的内容为双引号,才能正常去发一个 p 阅读全文
posted @ 2022-04-12 23:31 绣幕 阅读(21) 评论(0) 推荐(0) 编辑
摘要: 参考链接: https://docs.python.org/zh-cn/3/library/logging.html?highlight=logging#levels logrecord参考 常用配置 import logging logging.basicConfig(format='%(asct 阅读全文
posted @ 2022-04-07 23:01 绣幕 阅读(19) 评论(0) 推荐(0) 编辑
摘要: re学习笔记 学习链接: https://regexlearn.com/zh-cn/learn \w: 数字字母下划线 \W: 非\w \d \D: !\d \s: space cha \S: !\s #正向先行断言 仅匹配3 Date: 4 Aug 3PM \d+(?=PM) 3 #负向先行断言 阅读全文
posted @ 2022-03-06 00:11 绣幕 阅读(52) 评论(0) 推荐(0) 编辑
摘要: # --with--cc-opt flag导致./configure时找不到对应库文件? checking for --with-ld-opt="-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,-E" 阅读全文
posted @ 2022-02-27 20:51 绣幕 阅读(156) 评论(0) 推荐(0) 编辑
摘要: 安装时参考的以下文章 VMware Workstation Pro 虚拟机安装 VMware Workstation Pro 安装 龙蜥操作系统(Anolis OS) Anolis OS 8 安装指南 ps: 启动虚拟机时报错 此主机支持Intel VT-x但Intel VT-x处于禁用状态 。我是 阅读全文
posted @ 2022-02-12 23:16 绣幕 阅读(1133) 评论(0) 推荐(0) 编辑
摘要: pip install [库名]==【版本号】 -i https://pypi.tuna.tsinghua.edu.cn/simple pip install -r request.txt pip uninstall -y -r request.txt pip freeze all >request 阅读全文
posted @ 2021-11-26 21:52 绣幕 阅读(104) 评论(0) 推荐(0) 编辑
摘要: #rpm构建 linux distribution linux发行版 ##tarball 为了减少网络资源浪费,将源码进行压缩,tar --> gzip == tar.gz ##gcc gcc hello.c 默认生成a.out ./a.out执行 gcc -c hello.c 生成hello.o 阅读全文
posted @ 2021-11-08 23:12 绣幕 阅读(27) 评论(0) 推荐(0) 编辑
摘要: #linux ##tar 压缩 tar -cvzf pello-0.1.2.tar.gz pello-0.1.2 解压 tar -xf .gz -C / - C:解压到那个路径下 tar -xzvf .gz (显示解压过程) ##ln ln -s 源文件/目录 目标文件/目录(快捷键) ln -s 阅读全文
posted @ 2021-11-06 15:03 绣幕 阅读(20) 评论(0) 推荐(0) 编辑