安装 pip3 install cachetools 常见缓存分类 class cachetools.Cache(maxsize, getsizeof=None) class cachetools.LRUCache(maxsize, getsizeof=None). Least Recently U
char* p 在常量区分配了内存存储,栈上分配一地址给指针p并指向常量 char array[] array 表示的是一个char类型的数组指针,该指针所指向的数组
import json from json import JSONEncoder class Employee: def __init__(self, name, salary, address): self.name = name self.salary
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
CRTP CRTP全称是 curious recurring template pattern,是一种c++的设计模式,精巧地结合了继承和模板编程的技术。 可以用来给c++的class提供额外功能、实现静态多态等。<
#pragma once #include <curl/curl.h> #include <string> using std::string; #include <sstream> using std::stringstream; #include <glog/logging.h> #i