- 博客(3)
- 资源 (5)
- 收藏
- 关注
原创 python装饰器
1: import timefrom functools import wraps def timethis(func): ''' Decorator that reports the execution time. ''' @wraps(func) def wrapper(*args, **kwargs): start = time.time() result = func(*
2016-12-15 16:48:39 286
原创 c++11之可变模板参数
auto mysum() { return 1; } template auto mysum(const T& t, const args&... ps) { return t * mysum(ps...); } int main() { auto sum = mysum(1,3.9,4); cout << sum << endl; return 0;
2016-12-14 18:32:16 302
原创 一个ini配置文件解析器
test.ini: #begin [system] #参数1 param1=12 ;参数2 param2=12,13,14,15 #支持多行模式 param3=12, 13,14 ,15 ,18,19,20 #参数4 param4 = chen: hui:zong: hao:hao param5=true param6 =true,false,aaa,bbbb, true [op
2016-12-09 16:42:36 462
microhttpd的c++封装接口
2018-01-29
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人