Python Learning Notes (i) Introduction

Source: Internet
Author: User

Python is a programming language written by the famous "Uncle Turtle" Guido van Rossum during Christmas 1989 to send a boring Christmas.

Pros: Python provides us with a very well-developed base Code library Python code is simple and elegant, with less code

Disadvantage: Python is running slowly because Python is an explanatory language flood , and the code runs when it is translated into machine code and runs on the side. Unlike the C language, C is a compiled language, first compiled into machine code and then run. Python code cannot be encrypted, unlike the C language can be compiled to an. exe file, so all compiled languages do not have this problem, and the interpretation of the language, you must publish the source code.

What types of applications are Python suited to develop? The preferred is the Web application, including the website, the background service and so on, followed by many of the daily needs of the small tools, including the system administrator needs the script task and so on, the other language development programs are packaged again, easy to use.

Since the Python language is open source from spec to interpreter, many people have written their own Python interpreter, and eventually python has many kinds, such as: Cpython/ipython/pypy/jython/ironpython. But the most widely used is the CPython. If you want to interact with the Java or. NET platform, you can use network tuning to interact to ensure the independence of each program.

Python Input and output:

Output: Use print () to add a string to the parentheses, either with a single quotation mark or double quotation marks. There is no difference between single and double quotes here, but single quotes do not have to press shift to type a bit faster. When representing a string, double quotation marks can be used in single quotation marks instead of escaping characters and vice versa. print()You can also print an integer, or calculate the result.

Input: Python provides one that allows the input() user to enter a string and store it in a variable. Input () in parentheses can also be used to enter a string that input() lets you display a string to prompt the user. This is the equivalent of print (), and Python is really handy.

  

Python Learning Notes (i) Introduction

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.