Ipython Basic Use Method

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.