上一页 1 2 3 4 5 6 7 8 9 10 ··· 19 下一页
摘要: 用到的函数。 数组的行数。 shape函数是numpy.core.fromnumeric中的函数,它的功能是查看矩阵或者数组的维数。>>> e = eye(3) >>> e array([[ 1., 0., 0.], [ 0., 1., 0.], [ 0., 0., 1.]]) >>> e.shap 阅读全文
posted @ 2019-04-15 23:25 于光远 阅读(679) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/dh314552189/article/details/87879016 server.cpp #include <stdlib.h> #include <stdio.h> #include <errno.h> #include <sys/neutrino 阅读全文
posted @ 2019-04-08 13:42 于光远 阅读(855) 评论(0) 推荐(0) 编辑
摘要: 只有在pattern中使用了通配符才能有最长最短的匹配,否则没有最 长最短匹配之分结构中的pattern支持通配符* 表示零个或多个任意字符?表示零个或一个任意字符[...]表示匹配中括号里面的字符[!...]表示不匹配中括号里面的字符 假设我们定义了一个变量为:file=/dir1/dir2/di 阅读全文
posted @ 2019-03-15 11:40 于光远 阅读(2787) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/chrisnotfound/article/details/80662923 阅读全文
posted @ 2019-02-19 09:13 于光远 阅读(2982) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/nxld/p/6123239.html 阅读全文
posted @ 2019-01-28 12:27 于光远 阅读(95) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/ldzm_edu/article/details/78893721 阅读全文
posted @ 2019-01-25 16:30 于光远 阅读(205) 评论(0) 推荐(0) 编辑
摘要: sigset_t 号集及信号集操作函数:信号集被定义为一种数据类型: typedef struct { unsigned long sig[_NSIG_WORDS]; } sigset_t 信号集用来描述信号的集合,linux所支持的所有信号可以全部或部分的出现在信号集中,主要与信号阻塞相关函数配合 阅读全文
posted @ 2019-01-24 11:09 于光远 阅读(1754) 评论(0) 推荐(0) 编辑
摘要: ubuntu@ubuntu-vm:/work$ g++ main.cpp ubuntu@ubuntu-vm:/work$ ./a.out 12 23 45 6712 23 45 67 ubuntu@ubuntu-vm:/work$ 阅读全文
posted @ 2019-01-17 13:48 于光远 阅读(989) 评论(0) 推荐(0) 编辑
摘要: 1、数组转vectorfloat arrHeight[] = { 1.68,1.72,1.83,2.05,2.35,1.78,2.1,1.96 }; vector<float> vecHeight(arrHeight, arrHeight+sizeof(arrHeight)/sizeof(float 阅读全文
posted @ 2019-01-15 18:47 于光远 阅读(8471) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include <vector> #include <windows.h> #include <algorithm> using namespace std; int main() { vector<int> vec = {-7, 1, 10, 7, 2, 阅读全文
posted @ 2019-01-15 18:24 于光远 阅读(8077) 评论(0) 推荐(1) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 19 下一页