摘要:
硬件开发不在这个帐号上,在另一个帐号navysummer-hardware 硬件号传送门->硬件开发系列教程 阅读全文
摘要:
# last_n是数字类型,代表最新的几条数据 db.集合名.aggregate([ { "$sort": {"时间字段": -1, "数据标识字段": 1} }, { "$group": { "_id": "$数据标识字段", "latestData": {"$push": "$$ROOT"} } 阅读全文
摘要:
1.安装依赖包 npm install sharp canvas 2.实例代码 const {createCanvas} = require('canvas'); // 在虚拟DOM环境中创建Canvas const canvas = createCanvas(300, 200); const co 阅读全文
摘要:
# 删除几天前的文件 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 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
from openpyxl import Workbook from openpyxl.utils import column_index_from_string, get_column_letter # 创建一个Workbook对象 workbook = Workbook() sheet = wo 阅读全文
摘要:
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 阅读全文
摘要:
#include <QCoreApplication> #include <QApplication> #include <QWidget> #include <QVBoxLayout> #include <QVideoWidget> #include <QAudioOutput> #include 阅读全文
摘要:
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 阅读全文