摘要:
模式 描述 r 以读方式打开文件,可读取文件信息。 w 以写方式打开文件,可向文件写入信息。如文件存在,则清空该文件,再写入新内容 a 以追加模式打开文件(即一打开文件,文件指针自动移到文件末尾),如果文件不存在则创建 r+ 以读写方式打开文件,可对文件进行读和写操作。 w+ 消除文件内容,然后以读 阅读全文
摘要:
pathogen YouCompleteMe unavailable: No module named 'ycmd' git submodule update init recursive Vundle 阅读全文
摘要:
安装 $ sudo apt install python virtualenv $ sudo H pip install virtualenv 测试您的安装 $ virtualenv version 创建目录 $ mkdir myproject && cd myproject 创建虚拟环境 安装好之 阅读全文
摘要:
解决办法: pip install uwsgi I no cache dir It reinstalls ( I) as @leech said, but ignores the compiled cache ( no cache dir) and recompiles the thing with 阅读全文
摘要:
1.删除网页上文件 git commit a m "A file was deleted" 2.提交 git add file git commit m " " git push u origin master 初次提交使加u git push origin master 平时提交 git push 阅读全文
摘要:
环境 python 2.7 python 代理类型选择 python代理设置通常如下: 在HTTP 和 HTTPS 两种类型中,HTTPS类型的ip必须对应如:"https" : "https...", 像如:"http" : "https..."这样设置是错误的。 测试代码实例,主要以下有4种情况 阅读全文
摘要:
使用split() 函数 列: 或: 阅读全文
摘要:
python 有3种str 字符空行清除方法,分别为: str.lstrip() 清除左边第一个 str.rstrip() 清除右边第一个 str.strip() 清除两边 列: 打开文件清除换行符 列: 阅读全文
摘要:
环境:ubuntu 16.04 安装 sudo apt install libmysqlclient dev sudo apt install mysql server sudo apt install mysql client 登录 mysql u root p 退出 quit 和 \q 显示本地 阅读全文