cachetools

安装 pip3 install cachetools 常见缓存分类 class cachetools.Cache(maxsize, getsizeof=None) class cachetools.LRUCache(maxsize, getsizeof=None). Least Recently U

iohannes iohannes Published on 2025-03-14

cfd常见求解算法

有限体积法/Finite Volume Method (FVM) 这是一种基于离散化方程的方法,将连续的偏微分方程转化为离散的边界条件方程,然后通过迭代&#

iohannes iohannes Published on 2025-03-14
c++

char*和char[]的区别

char* p 在常量区分配了内存存储,栈上分配一地址给指针p并指向常量 char array[] array 表示的是一个char类型的数组指针,该指针所指向的数组

iohannes iohannes Published on 2025-03-14

class to json string

import json from json import JSONEncoder class Employee: def __init__(self, name, salary, address): self.name = name self.salary

iohannes iohannes Published on 2025-03-14

copy lib and run exe

copy all lib ldd exe_file | grep "=> /" | awk '{print $3}' | xargs -I '{}' cp -v '{}' /dest_dir export lib file export LD_LIBRARY_PATH=$LD_LIBRARY_PA

iohannes iohannes Published on 2025-03-14
c++

CRTP奇异递归模板模式

CRTP CRTP全称是 curious recurring template pattern,是一种c++的设计模式,精巧地结合了继承和模板编程的技术。 可以用来给c++的class提供额外功能、实现静态多态等。<

iohannes iohannes Published on 2025-03-14
c++

ctp下单和其响应

报单(下单) ReqOrderInsert 必填字段 TThostFtdcBrokerIDType BrokerID 经纪公司代码 必填 TThostFtdcInvestorIDType InvestorID 投资者代码 必填 TThostFtdcInstrumentIDType Instrumen

iohannes iohannes Published on 2025-03-14
c++

curl 之web hdfs

#pragma once #include <curl/curl.h> #include <string> using std::string; #include <sstream> using std::stringstream; #include <glog/logging.h> #i

iohannes iohannes Published on 2025-03-14

div位置设置

自己水平居中 .my-div{ margin: auto; } 自己固定位置 居上 .my-div{ position: absolute; top: 0px; }

iohannes iohannes Published on 2025-03-14

dns转发

1.创建容器 docker run --name bind \ -d --restart=always \ --publish 53:53/tcp \ --publish 853:53/udp \ --publish 8010:10000/tcp \ --volume /opt/

iohannes iohannes Published on 2025-03-14
Previous Next