python
文章平均质量分 54
lj_trestg
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Centos7安装Python3的方法
由于centos7原本就安装了Python2,而且这个Python2不能被删除,因为有很多系统命令,比如yum都要用到。[root@VM_105_217_centos Python-3.6.2]# pythonPython 2.7.5 (default, Aug 4 2017, 00:39:18)[GCC 4.8.5 20150623 (Red Hat 4.8.5-16)] on linux...转载 2018-03-05 15:23:01 · 223 阅读 · 0 评论 -
CentOS下如何挂载NTFS格式盘?
首先下载ntfs-3g文件wget http://tuxera.com/opensource/ntfs-3g-2010.8.8.tgz tar -zxf ntfs-3g-2010.8.8.tgz cd /下载/ntfs-3g-2010.8.8 ./configure make make install 挂载命令: mount -t ntfs-3g /dev/sda1 /mnt/win...原创 2018-04-10 06:10:31 · 1386 阅读 · 0 评论 -
vim下backspace键不能用
vim下backspace键不能用 1.原来vim缺省是vi兼容模式,设置成不兼容模式就好了::set nocp 可以用h...转载 2018-04-09 20:05:12 · 2420 阅读 · 0 评论 -
vim中python配置 .vimrc文件
set nocompatible " be iMproved, requiredfiletype off " requiredset number "显示行号set nowrap "不自动折行set showmatch "显示匹配的括号set scrolloff=3 "距离顶部和底部3行"set encoding...原创 2018-04-01 01:17:40 · 2995 阅读 · 0 评论 -
centos7下vim8.0配置python3开发环境
转载自:https://www.jianshu.com/p/297802d16fb4?from=timeline&isappinstalled=0一、配置vim for pythonhttps://github.com/VundleVim/Vundle.vimgit clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundl...转载 2018-04-01 00:15:23 · 6165 阅读 · 0 评论 -
python中关于round函数的小坑
转载自:https://www.cnblogs.com/anpengapple/p/6507271.htmlpython中关于round函数的小坑这个一直都想写,但是因为这个点比较小,所以一直懒得动手。不过还是补上吧,留着早晚是个祸害。round函数很简单,对浮点数进行近似取值,保留几位小数。比如>>> round(10.0/3, 2)3.33>>> rou...转载 2018-03-25 07:44:11 · 951 阅读 · 0 评论 -
Centos7 安装vim8.0 并对python2 和 python3的支持
1.下载vim8.0源码$git clone https://github.com/vim/vim.git2. 进入下载的vim源码目录 $cd vim/src3.添加python3和python2的支持 ./configure –with-features=huge:支持最大特性–enable-rubyinterp:打开对ruby编写的插件的支持–enabl...原创 2018-03-30 10:59:26 · 4780 阅读 · 0 评论 -
使用vim打造自己的python编辑器
转载自:https://www.cnblogs.com/linxiyue/p/7834817.html基础配置vim的配置是在用户主目录下的 ~/.vimrc 文件中完成的,如果没有的话,需要自己新建一下:12cd ~touch .vimrc首先做些简单的配置:12345678910set nocompatible "关闭与vi的兼容模式set number "显示行号set nowrap ...转载 2018-03-06 15:56:52 · 1125 阅读 · 0 评论 -
#!/usr/bin/python和#!/usr/bin/env 的区别
转载自:https://www.cnblogs.com/gne-hwz/p/8547173.html#!/usr/bin/python和#!/usr/bin/env 的区别#!/usr/bin/python通常在一个.py文件开头都会有这个语句它只在Linux系统下生效,意思是当作为可执行文件运行时调用的解释器的位置上面代码的意思是调用/usr/bin/下的Python来作为解释程序,同样...转载 2018-03-23 09:34:20 · 556 阅读 · 0 评论
分享