上一页 1 ··· 10 11 12 13 14
摘要: pip install opencv-python 运行demo: import cv2 img = cv2.imread(r"C:\\Users\\wucj\\Desktop\\lion.jpg", 1) cv2.imshow("1", img) cv2.waitKey() 阅读全文
posted @ 2020-06-02 18:20 绍荣 阅读(195) 评论(0) 推荐(0) 编辑
摘要: "cwd": "${fileDirname}":若有多个子目录,若想执行该子目录的py文件,需要在configurations下配置该选项,表明当前工作目录为工作文件所在的文件夹; 如何实现jupyter环境配置,使用如下配置 可以安装anaconda2和anaconda3,然后再vscode中的s 阅读全文
posted @ 2020-05-28 15:32 绍荣 阅读(628) 评论(0) 推荐(0) 编辑
摘要: 官方文档:https://numpy.org/doc/stable/reference/generated/numpy.matrix.html?highlight=matrix#numpy.matrix numpy开源项目:https://github.com/ddbourgin/numpy-ml 阅读全文
posted @ 2020-05-14 11:45 绍荣 阅读(1708) 评论(0) 推荐(0) 编辑
摘要: 分递归和非递归,代码如下: /** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode(int x) : val(x), next(NULL) {} * }; 阅读全文
posted @ 2018-07-03 14:21 绍荣 阅读(144) 评论(0) 推荐(0) 编辑
摘要: 先贴代码: /** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode(int x) : val(x), next(NULL) {} * }; */ clas 阅读全文
posted @ 2018-07-02 14:08 绍荣 阅读(161) 评论(0) 推荐(0) 编辑
摘要: 代码如下: TestPointer.h struct ListNode { int m_nValue; ListNode *m_pNext; }; class TestPointer { public: ListNode* reverseListNode(ListNode *pHead);priva 阅读全文
posted @ 2018-06-28 14:22 绍荣 阅读(166) 评论(0) 推荐(0) 编辑
摘要: 先附上代码: class Solution { public: string longestPalindrome(string s) { int count = s.size(); int max = 0; string result; int j; int curlen; for (int i = 阅读全文
posted @ 2018-06-21 17:03 绍荣 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 先贴代码,分递归回溯法和非递归回溯法 递归回溯法,代码如下: 非递归回溯法,代码如下: 指导思想: 走不通,就掉头; 检查合格才继续往下走;遇到不合格就是掉头; 能进则进,不能进则换,不能换则退; 解空间:一颗树空间 扩展规则:深度优先策略 设计过程:(1)确定问题的解空间;(2)确定结点的扩展规则 阅读全文
posted @ 2018-06-19 20:16 绍荣 阅读(3216) 评论(0) 推荐(0) 编辑
摘要: 步骤: 1) 在SecureCRT中, 选项 --> 会话选项 --> 终端 --> 仿真 -->终端项选"Xterm"并且勾选"ANSI 颜色"; 2) 连接远程Linux后,在Linux中使用find / -name .bashrc找到.bashrc(可以选当前用户),使用vi打开.bashrc 阅读全文
posted @ 2015-06-29 17:37 绍荣 阅读(350) 评论(0) 推荐(2) 编辑
上一页 1 ··· 10 11 12 13 14