程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
您现在的位置: 程式師世界 >> 編程語言 >  >> 更多編程語言 >> Python

Getting started with Python 1 and common linux commands

編輯:Python

1、python What numerical and sequence types are there ?

value type : integer 、 floating-point 、 Boolean type 、 Plural

Sequence type : list 、 Tuples 、 character string

2、linux Common commands

Toggle directory :cd

establish :touch

Copy :cp

rename :mv oldname newname

Move :mv filename Pathname (/home/pyvip/)

Create folder :mkdir

Delete folder :rm -rf filename

vim operation :

Create a file and enter :vim filename 

 

Edit mode :a perhaps i Get into

home: Head of line   end : At the end of the line

i: Insert from the front of the cursor

I: Insert at the beginning of the current line

a: Insert from behind the cursor

A: Insert at end of current line

o: Add a new line under the line where the cursor is located

O: Insert

 

Command mode :ESC Get into

gg: Go to the first line of the file

G: Go to the last line of the file (shift+g)

^: Non blank line beginning

Copy :

yy: Copy the entire line

3yy: Copy 3 Row content

yw: Copy the current cursor to the end of the word

p: Paste

Delete :

dd: Deletes the line where the cursor is located

dw: Delete a word

x: Delete cursor character

u: Undo last action

ctr+r: The previous step

 

Last row mode : Save and exit :wq   q sign out   q! Exit without saving

noh: Remove the color on the characters after searching

Search for :

/: Search forward  

?: Backward search

Replace :

 

 

 


  1. 上一篇文章:
  2. 下一篇文章:
Copyright © 程式師世界 All Rights Reserved