Git 学习 首先安装 git ,安装过程很简单,省略。 安装完git之后需要配置git $ git config --global user.name "Your Name" $ git config --global user.email "email@example.com" 初始化仓库 切换 ...
分类:
其他好文 时间:
2020-07-05 17:02:55
阅读次数:
67
HTML5 HTML 基本文档 <!DOCTYPE html> <html> <head> <title>文档标题</title> </head> <body> 可见文本... </body> </html> 基本标签(Basic Tags) <h1>最大的标题</h1> <h2> . . . </ ...
分类:
Web程序 时间:
2020-07-05 00:39:53
阅读次数:
82
安装 git --version 初始化配置 git config --global user.name "damu" git config --global user.email damu@example.com git config --list 初始化仓库 git init C(新增) 在工作 ...
分类:
其他好文 时间:
2020-07-04 22:48:04
阅读次数:
78
Node应用由模块组成,采用CommonJS模块规范。 每个文件就是一个模块,有自己的作用域。每一个文件里面定义的变量、函数、类都是私有的,对其他文件不可见。 // example.js var x = 5 var add = function(value){ return value + x } ...
分类:
Web程序 时间:
2020-07-04 21:13:56
阅读次数:
70
Spring读取配置的两种方式 注解的方式 ApplicationContext ac=new AnnotationApplicationContext("MyConfig.class") package com.example.demo; import org.springframework.co ...
分类:
编程语言 时间:
2020-07-04 18:58:16
阅读次数:
59
问题: 给定一个数组,对所有元素进行,按大小排名rank,同样大小排名相同。 Example 1: Input: arr = [40,10,20,30] Output: [4,1,2,3] Explanation: 40 is the largest element. 10 is the small ...
分类:
其他好文 时间:
2020-07-04 15:11:29
阅读次数:
58
Given a binary array, find the maximum number of consecutive 1s in this array. Example 1: Input: [1,1,0,1,1,1] Output: 3 Explanation: The first two di ...
分类:
其他好文 时间:
2020-07-04 13:47:53
阅读次数:
61
For a web developer, it is very important to know how to design a web page's size. So, given a specific rectangular web page’s area, your job by now i ...
分类:
其他好文 时间:
2020-07-04 13:45:09
阅读次数:
71
一、连接池 python设置redis连接池的好处 通常情况下,需要连接redis时,会创建一个连接,基于这个连接进行redis操作,操作完成后去释放, 正常情况下,这是没有问题的,但是并发量较高的情况下,频繁的连接创建和释放对性能会有较高的影响,于是连接池发挥作用。 连接池的原理:‘预先创建多个连 ...
分类:
编程语言 时间:
2020-07-03 19:42:22
阅读次数:
54
总结 状压DP就是将一个状态压缩为一个整数(通常为二进制数),就可以在更为方便地进行状态转移的同时,达到节约空间的目的。 题型一、冲突问题 1.1 特殊方格棋盘 题目描述 分析 我们设f[i][j]为当前的状态为$i$,放置到第$j$行时的方案数 但是,因为我们要在$n \times n$的棋盘上放 ...
分类:
其他好文 时间:
2020-07-03 19:14:23
阅读次数:
54