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

Python · learning

編輯:Python

python Interactive mode ( Script command line )

1. Enter command line window (win+R) Input cmd→ Input python

2. Show ">>>" It means that you can input program language

3. Close the interactive window :

  • a.ctrl+z And return
  • b. Input quit() command ·
  • c. Close the command line window directly

4. Interrupt program execution :ctrl+c( for example : Encountered an infinite loop statement )

IDLE Common shortcut key

alt+n alt+p View the previous item of the historical command , The next one

ctrl+f6 restart shell, All previously defined variables are invalid

f1 Open help document

alt+/ Autocomplete the previous words

ctrl+[ ctrl+] Indent code and cancel indent

alt+m Open the module code , Check the module first , Then press this shortcut , Will help you open the module py Source code for browsing

alt+c Open the class browser , It is convenient to switch between different methods in the source code file

f5 Run the program

Indent , notes

4 A space represents an indent

# Line notes

"' ''' Paragraph notes

\ Connector


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