Ipython
is a Python interactive shell tool that works better than the default Python shell tool. Support changed auto-completion, auto indent, built in a lot of functions and functions
Start: The tool can be started with cmd
Auto Completion:
In []: Import OS
In []: OS.W #直接回车, will automatically show all the methods under the module, if we forget the method of the OS module, the method can not be used in this way
Os.waitpid Os.walk Os.write
%ENV Display Environment variables
%hist or%history display history
Who: View variables
Module? : View Module Help documentation
who int: View numeric variables
Who_ls: Viewing the list type variable
Reset: Empty all variables
%run < file absolute path;: Run a Python script, such as:%run C:\2.py
Common shortcut keys:
Ctrl+u Delete entire line (cursor at last)
Ctrl+k Delete entire line (cursor at top)
CTRL + a jumps to the first line
Ctrl+e jump to the last
Apple key +k Empty screen
Ctrl+l emptying the screen
CTRL+R Reverse Search History
CTRL + C abort Run program
%pwd: Displays the current working directory.
%CD: Switch working directory
ls: View all files in this directory
Ipython is the interactive shell tool for Python