Python learning notes (1) of the basic introduction of the environment

  • 2020-04-02 13:40:26
  • OfStack

  Introduction to Python

          This series is for Python learning related notes collation, IT people, learn more harmless, explore more, stimulate learning interest, expand thinking, not high, just to understand a little skin, as a reserve of knowledge, not too far behind.
          This article mainly introduces the Python related background, environment construction.

Understand Python

        1. Language features of Python:

        To paraphrase Python's official website Https://www.python.org:

Python is powerful... And fast;

Plays well with others.

Runs everywhere.

Is friendly & easy to learn;

Is Open.

          The Python language is powerful and fast to develop. Have good interactivity; Portability; Friendly interface, easy to learn; Open source.

          Python is an interpreted, object-oriented, dynamic data type high-level programming language. Since the birth of Python in the early 1990s, it has been widely used to handle system administration tasks and Web programming.

          2. The main functions of Python standard library are:

Text processing, including text formatting, regular expression matching, text difference calculation and merging, Unicode support, binary data processing and other functions;

File processing, including file operation, create temporary files, file compression and archiving, operation configuration files and other functions;

Operating system functions, including thread and process support, IO reuse, date and time processing, calling system functions, logging, etc.

Network communication, including network socket, SSL encryption communication, asynchronous network communication and other functions;

Network protocol, support HTTP, FTP, SMTP, POP, IMAP, NNTP, XMLRPC and other network protocols, and provides a framework for writing network servers;

W3C format support, including HTML, SGML, XML processing;

Other features include internationalization support, math operations, HASH, Tkinter, and more.

Ii. Python environment construction

        There are many compilers for Python, but only two are introduced here for your reference:
        1. Go to the official website to download the Python2.7 compiler IDLE (easy to install and easy to use) :
                  After the installation is complete, you can see in the start menu:

< img border = 0 id = theimg onclick = window. The open this. (SRC) SRC = "/ / files.jb51.net/file_images/article/201406/201465142217936.jpg? 201455142229 ">

Click on IDLE to open the editor and write a small program.

< img border = 0 id = theimg onclick = window. The open this. (SRC) SRC = "/ / files.jb51.net/file_images/article/201406/201465142241029.jpg? 201455142256 ">

  2, another Python compiler Pycharm (interface layout and are similar in VC6.0, starts slowly) to download website: (link: http://www.jetbrains.com/pycharm/download/)   Choose the right machine to download;
            See another article on the installation process   (link: #)  

< img SRC = "border = 0 / / files.jb51.net/file_images/article/201406/201465142312921.jpg? 201455142327 ">

This chapter is mainly about getting to know Python for the first time, understanding the development environment of Python, and paving the way for future learning. Python is still near the top of the list of development languages and is widely used. My accidental discovery aroused my desire to learn it.


Related articles: