摘要: 实测,Ubuntu16.04,gcc 5.3.0&5.4.0(编译选项选择C++11和不选择新标准结果相同) 输出为 而同样的代码,在Windows下VS环境中, 输出为 这个就很奇怪了,只能取看具体操作情况了,下面是汇编文件,有空填坑(g++ -S ex.cpp生成汇编文件) 阅读全文
posted @ 2017-05-25 08:07 Vincent丶丶 阅读(516) 评论(0) 推荐(0) 编辑
摘要: 1. split() split()通过指定分隔符对字符串进行切片,如果参数num 有指定值,则仅分隔 num 个子字符串 split()方法语法:str.split(str="", num=string.count(str)).参数str -- 分隔符,默认为所有的空字符,包括空格、换行(\n)、 阅读全文
posted @ 2017-05-25 07:58 Vincent丶丶 阅读(246) 评论(0) 推荐(0) 编辑
摘要: 1.numpy.genfromtxt() numpy.genfromtxt() CSV文件很容易被numpy类库的genfromtxt方法解析 2. 阅读全文
posted @ 2017-05-25 07:56 Vincent丶丶 阅读(170) 评论(0) 推荐(0) 编辑
摘要: 1.Mat::imread() C++: Mat imread(const string& filename, int flags=1 ) filename – Name of file to be loaded. flags – Flags specifying the color type of 阅读全文
posted @ 2017-05-25 07:48 Vincent丶丶 阅读(358) 评论(0) 推荐(0) 编辑
摘要: c++规定:一个函数的默认实参既可以在定义中,也可在声明中指定,但在一个文件(准确的说,是一个作用域)中只能为一个形参指定默认实参一次 阅读全文
posted @ 2017-05-25 07:46 Vincent丶丶 阅读(176) 评论(0) 推荐(0) 编辑
摘要: 摘自https://docs.scipy.org 1.The Basics 1.1 numpy 数组基础 NumPy’s array class is called ndarray. ndarray.ndim the number of axes (dimensions) of the array. 阅读全文
posted @ 2017-05-25 07:44 Vincent丶丶 阅读(11085) 评论(0) 推荐(0) 编辑