摘要:
用到的函数。 数组的行数。 shape函数是numpy.core.fromnumeric中的函数,它的功能是查看矩阵或者数组的维数。>>> e = eye(3) >>> e array([[ 1., 0., 0.], [ 0., 1., 0.], [ 0., 0., 1.]]) >>> e.shap 阅读全文
摘要:
https://blog.csdn.net/dh314552189/article/details/87879016 server.cpp #include <stdlib.h> #include <stdio.h> #include <errno.h> #include <sys/neutrino 阅读全文
摘要:
只有在pattern中使用了通配符才能有最长最短的匹配,否则没有最 长最短匹配之分结构中的pattern支持通配符* 表示零个或多个任意字符?表示零个或一个任意字符[...]表示匹配中括号里面的字符[!...]表示不匹配中括号里面的字符 假设我们定义了一个变量为:file=/dir1/dir2/di 阅读全文
摘要:
https://blog.csdn.net/chrisnotfound/article/details/80662923 阅读全文
摘要:
https://www.cnblogs.com/nxld/p/6123239.html 阅读全文
摘要:
https://blog.csdn.net/ldzm_edu/article/details/78893721 阅读全文
摘要:
sigset_t 号集及信号集操作函数:信号集被定义为一种数据类型: typedef struct { unsigned long sig[_NSIG_WORDS]; } sigset_t 信号集用来描述信号的集合,linux所支持的所有信号可以全部或部分的出现在信号集中,主要与信号阻塞相关函数配合 阅读全文
摘要:
ubuntu@ubuntu-vm:/work$ g++ main.cpp ubuntu@ubuntu-vm:/work$ ./a.out 12 23 45 6712 23 45 67 ubuntu@ubuntu-vm:/work$ 阅读全文
摘要:
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 阅读全文
摘要:
#include <iostream> #include <vector> #include <windows.h> #include <algorithm> using namespace std; int main() { vector<int> vec = {-7, 1, 10, 7, 2, 阅读全文