Learn about Python

Source: Internet
Author: User

Python is a high-level programming language for interpreting, object-oriented, and dynamic data types. Python's text file is a. py file

Python's Purpose:

1, do daily tasks, such as automatic backup of your MP3

2, can do the website, many famous websites including YouTube is written by Python

3, can do online game backstage, a lot of online game backstage are developed by Python

4. Many tasks can be automatically executed

5. Perform search and replace on a large number of text files

6. Rename and rearrange a bunch of photo files in a complex way

7. Custom Database

8 、。。。。

Limitations of Python:

1, such as write operating system, this can only be written in C language

2, write mobile app, can only use Objective-c (for iphone) and Java (for Android);

3, write 3D games, preferably in C or C + +

The disadvantages of Python:

1, running slowly, and the C program is very slow, because Python is an interpreted language, your code will be executed on a line of translation into the CPU can understand the machine code, the translation process is very time-consuming, so very slow. The C program is a machine code that compiles directly to the CPU before it runs, so it's very fast.

2, the code can not be encrypted,

python enables programs to be written to be compact and readable. The Python programs you write are often much shorter than equivalent C, C + +, or Java programs for several reasons:

    • Advanced data types allow you to express complex operations in a single statement;
    • Statement grouping is done by indenting, rather than opening and closing parentheses;
    • The declaration of any variable or parameter is not necessary.

Installation of Python (Windows):

1,: Http://www.python.org/ftp/python/2.7.9/python-2.7.9.msi

In particular, be careful to select pip and Add python.exe to Path , then go all the way "Next" to complete the installation.

After the installation is complete, run Python under cmd and it will be successful!

2, you can also choose to download and install Anaconda, I am using anaconda2-4.1.1-windows-x86, with Python package. These software will appear after installation:

Here are the Ipython and Spyder software, they can be used to explain the implementation of Python code, but there are some subtle differences in the middle

1, Ipython is the command line execution, you can use the back add "? "View Python's own function description, you can use the following add". " Press the TAB key to see which commands to use next or direct completion, using the UP or DOWN ARROW keys to return lines of code that were previously written without having to copy and paste them yourself. But there's a downside, and it's going to have to be written again when there's a problem.

2, the Spyder is the equivalent of text editing and actuators, you can debug the running code, you can use Ctrl-click to view the specific implementation of the class or method code, you can search for code auto-completion and so on

Finally, I recommend several websites to learn Python *_*

http://www.liaoxuefeng.com/wiki/001374738125095c955c1e6d8bb493182103fac9270762a000

Http://www.runoob.com/python/python-tutorial.html

Http://python.usyiyi.cn/translate/python_278/tutorial/appetite.html

Learn about Python

Related Article

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.