SecureCRT开启Home,End,Insert,Delete键的方法
"\033[3~"
"\033[3~"
学习git
的第一步,肯定是要知道如何创建版本库,但是在这之前,还要搞清楚的一组概念是git
中的工作区
、寄存区
和版本库
。
工作区
:工作区是我们的项目工作目录,也是git初始化时的目录,将来所有的代码文件都保存在这个目录中。寄存区
:在工作区完成代码编辑后,首先要使用add
命令把代码提交到寄存区中,寄存区的数据存放在<span style="text-indent: 2em;">.git/index
目录下,所以有时候也把寄存区叫索引区。版本库
:代码提交到寄存区后,需要通过commit
命令把代码提交到版本库,只有经历了这一步之后代码才算是真正存放到了git
仓库中。Git
的默认配置信息保存在~/.gitconfig
文件下,初始化的时候为空,根据需要添加。
用户信息就相当于QQ或是微信里的用户名一样,标志用户的身份。
需要配置的是name
和email
:
git config --global user.name "maqian"
git config --global user.email maqian@dyxmq.cn
https://github.com/git/git/releases,目前最新版2.15
:
wget https://github.com/git/git/archive/v2.15.0.tar.gz
网速慢的话可以搞个代理,或者用迅雷下载。
把CentOS6.5默认的python2.6升级到了python2.7,然后运行yum命令的时候就出现了错误:
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:
No module named yum
Please install a package which provides this module, or
verify that the module is installed correctly.
It"s possible that the above module doesn"t match the
current version of Python, which is:
2.7.13 (default, Aug 18 2017, 21:52:09)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-18)]
If you cannot solve this problem yourself, please go to
the yum faq at:
http://yum.baseurl.org/wiki/Faq
CentOS6.5自带python环境为2.6,公司的python环境为2.7.
为了避免出现以后代码出现版本差异,所以把自带的2 .6版本升级到了2.7,过程十分曲折。。。。
中途遇到的问题和解决方法请点击:Python安装时遇到的问题
golang中的常量和其他语言里的常量大多相同,必须在编译期有确定的值。
const x, y int = 1, 2
const Pi = 3.14
const str = "Hello World"
wordpress关闭自动保存、自动草稿等等一系列之后,数据库中就剩下了无数的无用记录:
直接使用sql语句
truncate wp_posts
即可清空整个数据表,并从零开始索引,wp_posts是默认的保存文章内容的表名。
C++中类的构造函数调用顺序为: