#include <iostream> using namespace std; class Point { public: Point(int x = 0, int y = 0) : x(x), y(y) { count++; } Point(const Point &p) : x(p.x), y ...
分类:
编程语言 时间:
2020-03-14 18:39:08
收藏:
0 评论:
0 赞:
0 阅读:
99
time模块:更注重于time,和计时,关注性能 time.localtime()将时间戳转换struct_time元组 time.mktime()将元组转为时间戳 time.strftime()将元组格式化为字符串 time.strptime()将字符串格式化为元组 datetime模块:更注重于 ...
分类:
编程语言 时间:
2020-03-14 18:36:41
收藏:
0 评论:
0 赞:
0 阅读:
63
Spring Data Jpa 记录 如果在更新的时候,直接使用save方法更新就行,他的更新方法是根据你传没传id。 eg:比如你要更新用户的手机号:平常的更新方法,尤其是mybatis使用的过程中,更常见的是这样的: 这样做的后果是,如果你在实体类上面有级联的注解,会直接创建一个新的用户的,而不 ...
分类:
编程语言 时间:
2020-03-14 18:36:10
收藏:
0 评论:
0 赞:
0 阅读:
109
一、JVM如何加载.class文件 ClassLoader:依据特定格式,加载class文件到内存 Execution Engine:对命令进行解析 Native Interface:融合不同开发语言的原生库为Java所用 Runtime Data Area:JVM内存空间结构模型 二、反射的概念 ...
分类:
编程语言 时间:
2020-03-14 18:35:02
收藏:
0 评论:
0 赞:
0 阅读:
58
坚持+思考+输出 1、学习方式:查看提供视频(30分钟)+自我整理笔记(2小时)+周末视频输出 2、笔记方式按提问方式整理。 ...
分类:
编程语言 时间:
2020-03-14 18:34:12
收藏:
0 评论:
0 赞:
0 阅读:
50
Xx_Introduction The open source Anaconda Individual Edition (formally Anaconda Distribution) is the easiest way to perform Python/R data science and m ...
分类:
编程语言 时间:
2020-03-14 18:32:18
收藏:
0 评论:
0 赞:
0 阅读:
61
#include <iostream> using namespace std; class Base0 { public: int var0; void fun0() { cout << "Member of Base0" << endl; } }; class Base1: virtual pu ...
分类:
编程语言 时间:
2020-03-14 18:30:47
收藏:
0 评论:
0 赞:
0 阅读:
48
#include <iostream> using namespace std; class Base1 { public: Base1(int i) { cout << "Constructing Base1 " << i << endl; } ~Base1() { cout << "Destru ...
分类:
编程语言 时间:
2020-03-14 18:30:29
收藏:
0 评论:
0 赞:
0 阅读:
63
1、首先看看 VS 有没有安装 MFC ,我是VS2019,在创建项目的时候没有搜到MFC框架 那就安装下,打开vs的安装目录。我打开C:\Program Files (x86)\Microsoft Visual Studio\Installer,双击运行,选择修改 2、打开vs创建mfc项目 写好 ...
分类:
编程语言 时间:
2020-03-14 18:29:30
收藏:
0 评论:
0 赞:
0 阅读:
60
方式一: /** * DateTimeFormatter java 8 线程安全 * @throws Exception */ @Test public void testTimeDiff() throws Exception { // DateTimeFormatter formatter = D ...
分类:
编程语言 时间:
2020-03-14 18:27:19
收藏:
0 评论:
0 赞:
0 阅读:
289
安装jdk 此处不详细描述。 下载安装以及配置IntelliJ IDEA 官网: "https://www.jetbrains.com/idea/" 此处不详细描述。 创建项目 打开IDEA = File = New = Project,选择 ,JDK选择自己安装的版本。 项目信息根据自己需求来写: ...
分类:
编程语言 时间:
2020-03-14 18:26:06
收藏:
0 评论:
0 赞:
0 阅读:
62
#include <iostream> using namespace std; class Point { public: Point() : x(0), y(0) { cout<<"Default Constructor called"<<endl; } Point(int x, int y) ...
分类:
编程语言 时间:
2020-03-14 18:25:43
收藏:
0 评论:
0 赞:
0 阅读:
58
只需要: 1 im = Image.fromarray(np.uint8(“你的数组”)) 2 im.convert('RGB').save("MY.jpg",format = 'jpeg') ...
分类:
编程语言 时间:
2020-03-14 18:04:52
收藏:
0 评论:
0 赞:
0 阅读:
79
Python (zip, lambda, map, shallow copy, deepcopy) 1.zip 数据进行绑定到一起 2.lambda, map 进行输入 :输出简化 传入函数和可迭代对象可以进行依次进行映射执行 3.deepcopy和shallowcopy 赋值传的是引用 shall ...
分类:
编程语言 时间:
2020-03-14 18:00:36
收藏:
0 评论:
0 赞:
0 阅读:
49
1 <!DOCTYPE html> 2 <html lang="en"> 3 <head> 4 <meta charset="UTF-8"> 5 <title>Document</title> 6 <script type="text/javascript"> 7 window.onload = f ...
分类:
编程语言 时间:
2020-03-14 17:41:42
收藏:
0 评论:
0 赞:
0 阅读:
71
#include<iostream> using namespace std; class Date; class Time{ public: Time(int, int, int); void display(const Date&); private: int hour,minute,secon ...
分类:
编程语言 时间:
2020-03-14 17:40:52
收藏:
0 评论:
0 赞:
0 阅读:
83
本篇文章将介绍java中如何生成二维码,二维码的展示主要包括两方面: 1.直接生成图片(直接生成图片不需要web程序,maven工程即可) 2.将二维码转为字节数组,然后在web页面显示。web项目的目录结构以前面的一篇文章中的目录结构为基础(传送门)。生成二维码的功能主要是依赖Google的Zxi ...
分类:
编程语言 时间:
2020-03-14 17:35:40
收藏:
0 评论:
0 赞:
0 阅读:
76
/** 数组置顶 */ export function arrRoofPlacement(arr, index) { arr.unshift(arr[index]); arr.splice(index + 1, 1); return arr; } ...
分类:
编程语言 时间:
2020-03-14 17:33:56
收藏:
0 评论:
0 赞:
0 阅读:
80
/** 数组偏移 1网右移移位 2往左移一位 */ export function arrDisplacement(val, arr, index) { if (val == 1) { if (arr.length - 1 > index) { arr[index] = arr.splice(ind ...
分类:
编程语言 时间:
2020-03-14 17:32:25
收藏:
0 评论:
0 赞:
0 阅读:
65
1 <!-- math.random 获取0-1的随机数 2 math.floor 向下取整 3 math.ceil 向上取整 --> 4 <!DOCTYPE html> 5 <html lang="en"> 6 <head> 7 <meta charset="UTF-8"> 8 <title>Do ...
分类:
编程语言 时间:
2020-03-14 17:31:45
收藏:
0 评论:
0 赞:
0 阅读:
65