命令:rmp qa|grep vim #查看是否已经安装vim 命令:yum -y install vim #安装vim命令 注:该操作需要连接网络!刚刚安装CentOS 7并且初次接触的朋友可能会报 Cannot find a valid baseurl for repo:的错误, 这是因为连接不 ...
分类:
系统相关 时间:
2019-01-15 00:50:40
阅读次数:
217
Exercise2是注释和井号 Comments and Pound Characters 具体详情请参考 "习题一" ,这里就不在做过多的赘述。 习题 3: 数字和数学计算 学习目标: 了解Python中常用的算术运算符,并了解运算符之间的先后运算顺序 在各大常用的计算机语言中都有常见的算术运算符 ...
分类:
编程语言 时间:
2019-01-13 21:39:45
阅读次数:
222
Given a text file file.txt that contains list of phone numbers (one per line), write a one liner bash script to print all valid phone numbers. You may ...
分类:
其他好文 时间:
2019-01-13 17:08:50
阅读次数:
184
class Solution { public boolean isValid(String s) { if(s == null) return false; Stack stack = new Stack(); String left = "([{"; String right = ")]}"; ...
分类:
其他好文 时间:
2019-01-11 16:04:25
阅读次数:
182
Problem: Given a non-empty string s and an integer k, rearrange the string such that the same characters are at least distance k from each other. All ...
分类:
其他好文 时间:
2019-01-10 15:43:00
阅读次数:
214
I have been quite annoyed by a Windows bug that causes a huge number of open-source command-line tools to choke on multi-byte characters at the Window ...
分类:
其他好文 时间:
2019-01-09 22:47:39
阅读次数:
389
上一篇文章介绍了springmvc的get请求参数可以是一个自定的对象。那么如何限制这个对象里的参数是否必传呢? 方法一:在代码逻辑里取出对象里的这个值,手动进行判断 方法二:使用@Valid注解,在接口请求的时候让Spring自己进行判断 比较 如果用上面两个方法进行非空判断,当参数传的是空的时候 ...
分类:
编程语言 时间:
2019-01-09 15:42:07
阅读次数:
297
Given an array of characters, compress it in place. The length after compression must always be smaller than or equal to the original array. Every ele ...
分类:
其他好文 时间:
2019-01-07 22:37:06
阅读次数:
159
Given two binary strings, return their sum (also a binary string). The input strings are both non-empty and contains only characters 1 or 0. Example 1 ...
分类:
其他好文 时间:
2019-01-06 13:32:20
阅读次数:
138