会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
NAVYSUMMER
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
···
118
下一页
2024年3月10日
硬件开发系列教程
摘要: 硬件开发不在这个帐号上,在另一个帐号navysummer-hardware 硬件号传送门->硬件开发系列教程
阅读全文
posted @ 2024-03-10 23:22 NAVYSUMMER
阅读(17)
评论(0)
推荐(0)
2024年1月29日
mongo按照某个字段,取出最新的几条数据
摘要: # last_n是数字类型,代表最新的几条数据 db.集合名.aggregate([ { "$sort": {"时间字段": -1, "数据标识字段": 1} }, { "$group": { "_id": "$数据标识字段", "latestData": {"$push": "$$ROOT"} }
阅读全文
posted @ 2024-01-29 09:08 NAVYSUMMER
阅读(61)
评论(0)
推荐(0)
2023年12月28日
在nodejs环境里使用canvas和sharp生成图片
摘要: 1.安装依赖包 npm install sharp canvas 2.实例代码 const {createCanvas} = require('canvas'); // 在虚拟DOM环境中创建Canvas const canvas = createCanvas(300, 200); const co
阅读全文
posted @ 2023-12-28 17:39 NAVYSUMMER
阅读(716)
评论(0)
推荐(0)
2023年12月5日
linux删除指定日期前的文件
摘要: # 删除几天前的文件 days=5 find /path/to/logs -type f -name "log*" ! -newermt $(date -d "$days days ago" +%Y%m%d) -exec rm {} \; # 删除指定日期前的文件 date_str="2023-01
阅读全文
posted @ 2023-12-05 13:09 NAVYSUMMER
阅读(110)
评论(0)
推荐(0)
2023年12月2日
rust使用动态连接库实现两个数的求和
摘要: 1.1 创建库项目 cargo new --lib plugin cd plugin 1.2 编写加法功能函数 vim src/lib.rs #[no_mangle] pub extern fn add(left: usize, right: usize) -> usize { left + rig
阅读全文
posted @ 2023-12-02 18:54 NAVYSUMMER
阅读(53)
评论(0)
推荐(0)
2023年11月16日
部署单节点etcd
摘要: 1.下载并安装etcd ETCD_VERSION='3.4.13' wget https://github.com/etcd-io/etcd/releases/download/v${ETCD_VERSION}/etcd-v${ETCD_VERSION}-linux-amd64.tar.gz tar
阅读全文
posted @ 2023-11-16 17:01 NAVYSUMMER
阅读(109)
评论(0)
推荐(0)
2023年11月15日
使用openpyxl合并单元格
摘要: from openpyxl import Workbook from openpyxl.utils import column_index_from_string, get_column_letter # 创建一个Workbook对象 workbook = Workbook() sheet = wo
阅读全文
posted @ 2023-11-15 16:56 NAVYSUMMER
阅读(245)
评论(0)
推荐(0)
2023年10月23日
python通过脚本路径获取对应脚本里的内容
摘要: test.py class A: def a(self): pass @staticmethod def b(): pass @classmethod def c(cls): pass @property def d(self): return 1 e = 1 def f(): pass test2
阅读全文
posted @ 2023-10-23 14:42 NAVYSUMMER
阅读(22)
评论(0)
推荐(0)
2023年9月16日
Qt和ffmpeg结合制作全能解码播放器
摘要: #include <QCoreApplication> #include <QApplication> #include <QWidget> #include <QVBoxLayout> #include <QVideoWidget> #include <QAudioOutput> #include
阅读全文
posted @ 2023-09-16 17:56 NAVYSUMMER
阅读(160)
评论(0)
推荐(0)
2023年8月19日
centos安装python3.7
摘要: 1.安装openssl11 yum 安装 openssl 1.1.1k 2.安装依赖 yum install xz-devel zlib-devel bzip2-devel ncurses-devel sqlite-devel readline-devel tk-devel gcc make lib
阅读全文
posted @ 2023-08-19 15:20 NAVYSUMMER
阅读(174)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
···
118
下一页
公告
交流群
编程书籍