ubuntu 中python基本操做

# 查看全部python版本javascript

ls /usr/bin/python*php

 

# 查看python版本css

python --versionhtml

 

# 修改python版本java

vi ~/.bashrc   # 編輯文件添加內容python

alias python='/usr/bin/python3.4' # 添加內容後,保存退出從新啓動這個文件vim

. ~/.bashrcbash

 

# 修改適合python開發環境的vimxml

vim ~/.vimrc   # 輸入如下內容,並保存退出htm

#-----------------

let Tlist_Auto_Highlight_Tag=1let Tlist_Auto_Open=1let Tlist_Auto_Update=1let Tlist_Display_Tag_Scope=15 let Tlist_Exit_OnlyWindow=1let Tlist_Enable_Dold_Column=1let Tlist_File_Fold_Auto_Close=1let Tlist_Show_One_File=1let Tlist_Use_Right_Window=1let Tlist_Use_SingleClick=1  nnoremap <silent> <F8> :TlistToggle<CR>   filetype plugin onautocmd FileType pythonset omnifunc=pythoncomplete#Completeautocmd FileType javascrīpt set omnifunc=javascriptcomplete#CompleteJSautocmd FileType html set omnifunc=htmlcomplete#CompleteTagsautocmd FileType css set omnifunc=csscomplete#CompleteCSSautocmd FileType xml set omnifunc=xmlcomplete#CompleteTagsautocmd FileType php set omnifunc=phpcomplete#CompletePHPautocmd FileType c set omnifunc=ccomplete#Completelet g:pydiction_location='~/.vim/tools/pydiction/complete-dict'set autoindentset tabstop=4set shiftwidth=4set expandtabset number

相關文章
相關標籤/搜索