CentOS 修改vim的Tab为4个空格
## 演示环境 ```shell [root@hwc ~]# cat /etc/redhat-release CentOS Linux release 7.6.1810 (Core) ``` ## 操作步骤 1. 编辑`/etc/vimrc`文件 ```shell vim /etc/vimrc ``` 2. 在文件最后添加以下内容
nginx rewrite 隐藏URL中的.php后缀
## 需求背景 因为要做课程设计,其中一个功能需要去除 URL 中的`.php`进行访问。例如链接`https://zkk.me/function.php`,要能够使用`https://zkk.me/function`访问。自己手头已有的工具
Windows为VSCode添加右键快捷项
1041 Be Unique(20分)--PAT甲级
Be Unique 题目 Being unique is so important to people on Mars that even their lottery is designed in a unique way. The rule of winning is simple: one bets on a number chosen from [1,104].
1001 A+B Format(20分)--PAT甲级
A+B Format 题目 Calculate a+b and output the sum in standard format -- that is, the digits must be separated into groups of three by commas (unless there are less than four digits). - 时间限制: 400 ms
1001 害死人不偿命的(3n+1)猜想(15分)--PAT乙级
害死人不偿命的(3n+1)猜想 题目 卡拉兹(Callatz)猜想: 对任何一个正整数 n,如果它是偶数,那么把它砍掉一半;如果它是奇数,那么把 (3n+1) 砍掉一半。这样一直反复砍下去,最后一定在某一步得到 n=1
圈地运动-360公司笔试题
圈地运动 题目: 圈地运动,就是用很多木棍摆在地上组成一个面积大于0的多边形~ 小明喜欢圈地运动,于是他需要去小红店里面买一些木棍,期望圈出一块地来。小红想挑战一下小明,所以给小明设置