上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 59 下一页
摘要: 正则表达式 字符串可以保存任意的数据信息,并向所有的数据类型转换 正则最早是Linux下发展起来的技术,理论基础源自离散数学 JDK 1.4 修改了String类定义,可通过字符串类进行正则的处理 传统的做法 1 public class Regex_Demo { 2 public static v 阅读全文
posted @ 2021-07-29 14:43 cxc1357 阅读(73) 评论(0) 推荐(0)
摘要: 用栈实现深度优先遍历 1 #include <iostream> 2 #define MAX_ROW 5 3 #define MAX_COL 5 4 5 struct point { int row, col; } stack[512]; 6 int top = 0; 7 8 void push(s 阅读全文
posted @ 2021-07-29 14:42 cxc1357 阅读(47) 评论(0) 推荐(0)
摘要: 参考 https://stackoverflow.com/questions/10956139/uninitialized-reference-member 阅读全文
posted @ 2021-07-29 14:39 cxc1357 阅读(48) 评论(0) 推荐(0)
摘要: librecad src/ all source code src/actions/ all action classes src/command/ the rs_command class for command line framework src/lib/ LibreCAD library s 阅读全文
posted @ 2021-07-29 14:38 cxc1357 阅读(694) 评论(0) 推荐(0)
摘要: 时间复杂度 时间复杂度并不是表示一个程序解决问题需要花多少时间,而是当问题规模扩大后,程序需要的时间长度增长得有多快。 复杂度被分为两种级别:一种是O(1),O(log(n)),O(n^a)等,我们把它叫做多项式级的复杂度,因为它的规模n出现在底数的位置;另一种是O(a^n)和O(n!)型复杂度,它 阅读全文
posted @ 2021-07-29 14:37 cxc1357 阅读(207) 评论(0) 推荐(0)
摘要: 如题: # -*- coding: utf-8 -*- """ Created on Sun Jul 7 20:24:49 2019 @author: Administrator """ from tkinter import ttk from tkinter import * root = Tk( 阅读全文
posted @ 2021-07-29 14:35 cxc1357 阅读(1073) 评论(0) 推荐(0)
摘要: 文件变量的声明: #路径声明 path = r'F:\spyder_workspace\test1.txt' #另一种方式 #path = 'F:\\spyder_workspace\\test1.txt' #文件声明 f = open(path,'r') #文件读取,默认全部 f.read() # 阅读全文
posted @ 2021-07-29 09:23 cxc1357 阅读(86) 评论(0) 推荐(0)
摘要: 1、skleran中包的命名规律 API帮助中每个大标题对应skleran源码文件夹下的一个文件夹(如preprocessing) 再下一级的是类(如Imputer),定义在文件夹中的py文件里,一般每个py文件中会定义多个类 2、sklearn中的主要对象(类) 估算器(estimator):能够 阅读全文
posted @ 2021-07-29 09:22 cxc1357 阅读(333) 评论(0) 推荐(0)
摘要: ClassView、ResourceView、FileView有什么联系和区别?ClassView中显示类,ResourceView中显示各种控件句柄,FileView中显示各种文件(.h和.cpp) 两种访问方法:对象实例化,指针实例化 二元关系:类与对象,声明与定义,属性与方法,.h与.cpp文 阅读全文
posted @ 2021-07-29 09:22 cxc1357 阅读(127) 评论(0) 推荐(0)
摘要: 在t_1中定义全局变量a,t_2调用t_1函数,观察a的变化 t_1: a = 0 b = [] def f(): global a a += 1 b.append(1) 函数中的a需要声明global,否则会报错,b不需要声明 t_2: import t_1 t_1.f() t_1.f() pri 阅读全文
posted @ 2021-07-29 09:05 cxc1357 阅读(55) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 59 下一页