1. Installing Ipython
Pip Install Ipthon
2.ipython Basic methods of use
1 A = 9 variable name = Variable value 2TAB key auto Complete 3 b = [1, 2, 3, 4, 5]4 B.tab The key can show all the ways of using B
? Command (introspection, namespace search)deffunc (A, b):"""docstring Test""" returnA +b# ?? can display the contents of a query functionfunc?? Signature:func (A, b) Source:deffunc (A, b):"""docstring Test""" returnA +BFile:~/<ipython-input-9-984bc4cbc873>type:function# *?A = [1, 2, 3]A.A*?#can query a This variable to start with a what is the method A.appendA.*?#all the methods that can query a variableA.__*__?#can query a This variable all double underline method
1 Run system commands, basic Linux system commands can be run 2 dir 3 ls 4 pwd 5 CD
1 run the script file%run2 For example: desktop test.py file3 CD Files directory4%Run test.py5306 7 8 " "9 def func (A, b):Ten "" " docstring Test " "" One return a + b A - - A = ten the B = - obj = func (A, b) - print (obj) - " "
Ipython Basic Use Method