1.1 Python is a kind of language

Source: Internet
Author: User

The hour does not know the month, calls makes the white jade dish. Many people are accustomed to say that Python is only a scripting language, in fact, this is very inaccurate, it does not reflect the power of Python. Strictly speaking, Python is a cross-platform, open-source, free-to-interpret advanced dynamic programming language. In addition to interpreting execution, Python also supports pseudo-compilation to convert source code to bytecode to optimize the program to speed up and keep the source code confidential, and to support the use of Py2exe, Pyinstaller, cx_ Freeze or other similar tools package the Python program and all its dependent libraries into an executable program with the extension name EXE, allowing it to run independently of the Python interpreter environment and associated dependent libraries on the Windows platform; Python supports imperative programming, functional programming, Full support for object-oriented programming, the syntax is concise and clear, and has a large number of almost all areas of application development of mature extension library; some people like to call Python the "glue language", because it can be written in a variety of different languages to merge together to achieve seamless splicing, Better use the advantages of different languages and tools to meet the needs of different application areas.

Who I am, where I come from, where I want to go, is the question that everyone should always think about, that life has to have a clear, tall goal and keep fighting. Also, when choosing Python, be sure to consider what the purpose of your learning Python is, what kind of development you are going to do, what extensions are available, which versions of Python are most supported by these extensions, which are all determined and then made your own choices, Instead of wasting too much time on the repeated installation and uninstallation of Python and various extension libraries.

At present, the Python 3.x design concept more humane, universal and application is the trend, more and more expansion of the library at the fastest speed with the latest version of the Python version. If you're not ready to do any application development in the industry, or just to try a new, fun language, don't hesitate to choose the highest version of the Python 3.x series.

Tip: Instead of directly seeing the current Python version number (as shown in code block 1.1.1) in the idle main interface, you can also view the current Python version using the method shown in code block 1.1.2

 1  Python 3.5.2 (v3.5.2:4def2a2901a5, June, 22:18:55) [MSC v.1900 64 bit (AMD64)] on Win32  2  Type "  copyright   ",  " credits  "  or   " license ()    " for   More information.  3  >>> 

Code block 1.1.1

1>>>ImportPlatform#Import Python Module platform2>>> platform.python_version ()#Call the function that returns the version number in the Platform Module3 '3.5.2'4 5>>>ImportSys#Import python module sys6>>>sys.version7 '3.5.2 (V3.5.2:4DEF2A2901A5, June, 22:18:55) [MSC v.1900-bit (AMD64)]'8>>>9>>>Sys.winverTen '3.5' One>>> A>>>Sys.version_info -Sys.version_info (major=3, minor=5, micro=2, releaselevel='Final', serial=0) ->>> the>>> sys.executable#View Python main program Files - 'C:\\users\\dddd\\appdata\\local\\programs\\python\\python35\\pythonw.exe' ->>>

Code block 1.1.2

  

  Tip: The SYS module also provides a large number of interfaces related to system programming, which will be expanded as needed later in this chapter.

1.1 Python is a kind of language

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.