插入命令 a 在光标所在字符后插入 A 在光标所在行尾插入 i 在光标所在字符前插入 I 在光标所在行行首插入 o 在光标下插入新行 O 在光标上插入新行 定位命令 :set nu 设置行号 :set no nu 取消行号 gg 到第一行 G 到最后一行 nG 到第n行 :n 到第n行 $ 到行尾 ...
分类:
系统相关 时间:
2019-02-01 21:56:17
阅读次数:
202
如果在系统中新增一块硬盘时,我们得完成下方的工作 1:对磁盘进行分区 2:对该分区进行格式化 3:对新建好的文件系统进行检验 4:创建挂载点 一,磁盘分区 # 为什么要进行磁盘分区 1:更容易进行管理和控制系统(相关的文件和目录都在同一个分区中) 2:系统的效率更高 3:可以限制用户使用磁盘的大小 ...
分类:
系统相关 时间:
2019-02-01 15:46:13
阅读次数:
203
1 Ii Minimum_Representation(char *str){ 2 int len=strlen(str+1),i=0,j=1,k=0; 3 while(i<=len&&j<=len&&k<=len){ 4 int t=str[(i+k)%len+1]-str[(j+k)%len+1 ...
分类:
其他好文 时间:
2019-01-31 20:45:39
阅读次数:
229
if(OBJECT_ID('tempdb.dbo.#tempTB') is not null)begin drop table #tempTB;end create table #tempTB(ID int NULL,Name nvarchar(50) NULL,Pwd varchar(50) NU ...
分类:
数据库 时间:
2019-01-31 15:46:26
阅读次数:
411
控制反转(Inversion of Control,缩写为IoC),是面向对象编程中的一种设计原则,可以用来减低计算机代码之间的耦合度。其中最常见的方式叫做依赖注入(Dependency Injection,简称DI) spring ioc容器初始化好bean的实例对象之后,会对该对象中的属性进行初 ...
分类:
编程语言 时间:
2019-01-31 13:16:20
阅读次数:
224
1. 什么是最小生成树(Minimum Spanning Trees) 对于一个无向图,如果它的所有边都带有一定的数值(即带权),则会变成下面的样子 假设这些点都是城市,每个城市之间的连线代表城市间的道路,线上的数字代表着道路的长短。当然,修越长的道路就需要越多的资源。 那么如果要用最少的资源把所有 ...
分类:
编程语言 时间:
2019-01-31 10:32:25
阅读次数:
179
https://leetcode.com/problems/minimum-index-sum-of-two-lists/ Suppose Andy and Doris want to choose a restaurant for dinner, and they both have a list ...
分类:
其他好文 时间:
2019-01-31 01:28:37
阅读次数:
169
In the video game Fallout 4, the quest "Road to Freedom" requires players to reach a metal dial called the "Freedom Trail Ring", and use the dial to s ...
分类:
其他好文 时间:
2019-01-31 00:09:11
阅读次数:
148
Spring有三大核心思想,分别是控制反转(IOC,Inversion Of Controller),依赖注入(DI,Dependency Injection)和面向切面编程(AOP,Aspect Oriented Programming)。 这里只说前两个核心思想,最后一个下次再说(手动滑稽)。 ...
分类:
编程语言 时间:
2019-01-30 22:17:41
阅读次数:
185
算法描述: Given a m x n grid filled with non-negative numbers, find a path from top left to bottom right which minimizes the sum of all numbers along its ...
分类:
其他好文 时间:
2019-01-30 19:12:48
阅读次数:
103