04 2020 档案

摘要:一、def 函数 python 提供了函数功能,可以将想要在程序中重复使用的部分功能抽象成一个函数,以方便程序调用,或者提供给其他模块使用 def function_name(parameters): expressions python 使用 def 开始函数定义,紧接着是函数名,括号内部为函数的 阅读全文
posted @ 2020-04-30 10:27 zero_to_infinity 阅读(257) 评论(0) 推荐(0) 编辑
摘要:一、print 功能 1、打印字符串要加单引号或者双引号 print('Hello world') # 打印 Hello world print("Hello world 2") # 打印 Hello world 2 2、字符串叠加 可以使用 + 将两个字符串链接起来 print("Hello wo 阅读全文
posted @ 2020-04-29 15:39 zero_to_infinity 阅读(316) 评论(0) 推荐(0) 编辑
摘要:一、cd (Change Directory) 找到 Linux 的 Terminal 窗口, 默认跳出来是在用户目录 (Home)。 Terminal 中的 ~ $ 就是说,输入的指令将在 ~ 这个目录下执行。而 ~ 这个符号代表的就是 Home 目录。 使用cd指令,能在 Terminal 中轻 阅读全文
posted @ 2020-04-28 18:42 zero_to_infinity 阅读(233) 评论(0) 推荐(0) 编辑
摘要:所谓虚拟机(virtual machine),就是通过软件技术虚拟出来的一台计算机,它在使用层面和真实的的计算机并没有什么区别。常见的虚拟机软件有VMware Workstation(简称VMware)、VirtualBox、Microsoft Virtual PC等,其中VMware市场占有率最高 阅读全文
posted @ 2020-04-28 11:32 zero_to_infinity 阅读(449) 评论(0) 推荐(0) 编辑
摘要:HNSW 分层的可导航小世界(Hierarchical Navigable Small World, HNSW) 特点 1、一种基于图的数据结构 2、使用贪婪搜索算法的变体进行ANN搜索,每次选择最接近查询的未访问的相邻元素时,它都会从元素到另一个元素地遍历整个图,直到达到停止条件 原理参考: ht 阅读全文
posted @ 2020-04-15 11:03 zero_to_infinity 阅读(1923) 评论(0) 推荐(0) 编辑
摘要:一、准备工作 1、下载OpenCV安装包 https://github.com/opencv/opencv/tree/3.1.0 安装完成结果如下 2、下载opencv_contrib源码 https://github.com/opencv/opencv_contrib/tree/3.1.0 解压结 阅读全文
posted @ 2020-04-13 14:30 zero_to_infinity 阅读(478) 评论(0) 推荐(0) 编辑
摘要:一、编译HDF5 1、下载源码:https://github.com/pengzerong/HDF5 2、解压并编译 解压下载到的:CMake-hdf5-1.12.0.zip。注意:路径中不要有空格 运行build-VS2017-64.bat,等待编译完成。 二、编译FLANN 1、下载源码:htt 阅读全文
posted @ 2020-04-03 17:26 zero_to_infinity 阅读(1975) 评论(0) 推荐(0) 编辑
摘要:1、File* (1) 写入txt void WriteTXT() { std::string filepath; FILE* file = fopen(filepath.c_str(), "wt+"); if (file) { std::string str = "test"; std::stri 阅读全文
posted @ 2020-04-03 15:07 zero_to_infinity 阅读(1168) 评论(0) 推荐(0) 编辑
摘要:1、string、CString互换 // string --> CString CString.format("%s", string.c_str()); // CString --> string string s(CString.GetBuffer()); GetBuffer()后一定要Rel 阅读全文
posted @ 2020-04-03 14:09 zero_to_infinity 阅读(307) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示