上一页 1 2 3 4 5 6 7 ··· 19 下一页

2020年6月13日

摘要: c/c++ 中经常会遇到时间和字符串互相转化的情形 用以下2个函数来转就很方便了 1、时间转字符串函数 size_t strftime(char *strDest, size_t maxsize, const char *format, const struct tm *timeptr); 2、字符 阅读全文

posted @ 2020-06-13 10:27 yacbo 阅读(273) 评论(0) 推荐(0) 编辑


2020年6月6日

摘要: #include <thread> #include <iostream> class Wrapper { public: void member1() { std::cout << "i am member1" << std::endl; } void member2(const char *ar 阅读全文

posted @ 2020-06-06 15:25 yacbo 阅读(1326) 评论(0) 推荐(0) 编辑

摘要: 多线程:到底什么时候该用多线程 一、高并发 系统接受实现多用户多请求的高并发时,通过多线程来实现。 二、线程后台处理大任务 一个程序是线性执行的。如果程序执行到要花大量时间处理的任务时,那主程序就得等待其执行完才能继续执行下面的。那用户就不得不等待它执行完。 这时候可以开线程把花大量时间处理的任务放 阅读全文

posted @ 2020-06-06 10:29 yacbo 阅读(1111) 评论(0) 推荐(0) 编辑


2020年6月5日

摘要: json串转成对象 cInfraredData* cInfraredData::to_obj(char* jsonstr) { cInfraredData* p = new cInfraredData(); Document doc; doc.Parse(jsonstr); if (doc.HasM 阅读全文

posted @ 2020-06-05 09:25 yacbo 阅读(1569) 评论(0) 推荐(0) 编辑


2020年5月28日

摘要: def makelist(list): leng = len(list) #集合长度 if leng >= 3 : tempList = copy.deepcopy(list) newList = [] va = int(leng / 3) yu = leng % 3 for i in range( 阅读全文

posted @ 2020-05-28 16:51 yacbo 阅读(117) 评论(0) 推荐(0) 编辑


2020年5月23日

摘要: ①确定自己的python版本,以及下载对应的dlib版本。比如我的是py3.7下载dlib-19.17.0-cp37-cp37m-win_amd64.whl 链接:https://pan.baidu.com/s/1Qs16_P8PzbTiUd0Dv5ut_w 提取码:3ceq ②打开Anaconda 阅读全文

posted @ 2020-05-23 15:25 yacbo 阅读(1221) 评论(0) 推荐(0) 编辑


2020年5月15日

摘要: 解释性语言和编译性语言的定义: 计算机不能直接理解高级语言,只能直接理解机器语言,所以必须要把高级语言翻译成机器语言,计算机才能执行高级语言编写的程序。翻译的方式有两种,一个是编译,一个是解释。两种方式只是翻译的时间不同。 解释性语言 解释性语言的定义: 解释性语言的程序不需要编译,在运行程序的时候 阅读全文

posted @ 2020-05-15 15:00 yacbo 阅读(662) 评论(0) 推荐(0) 编辑

摘要: void* 和 void 在函数返回值中的区知别。 void* 是可以返回任意类型的值的指针.。 #include <stdlib.h> #include <stdio.h> void voidc(int a); void* voidcp(int *a); int main(){ int a=10; 阅读全文

posted @ 2020-05-15 14:29 yacbo 阅读(800) 评论(0) 推荐(0) 编辑


2020年5月9日

摘要: redis 的启动、关闭 判断其是否在运行中 redis 的启动、关闭 判断其是否在运行中 #检查后台进程是否正在运行 ps -ef |grep redis ps aux | grep redis #检测6379端口是否在监听 netstat -lntp | grep 6379 #使用配置文件启动r 阅读全文

posted @ 2020-05-09 14:56 yacbo 阅读(142) 评论(0) 推荐(0) 编辑


2020年4月28日

摘要: 测试调用delya()函数所需执行的时间(单位为微妙) #include<stdio.h> #include<sys/time.h> #include<unistd.h> int delay(int time) { int i,j; for(i =0;i<time;i++) for(j=0;j<50 阅读全文

posted @ 2020-04-28 10:53 yacbo 阅读(1474) 评论(0) 推荐(0) 编辑


上一页 1 2 3 4 5 6 7 ··· 19 下一页

Copyright © 2024 yacbo
Powered by .NET 8.0 on Kubernetes