Home > Backend Development > Python Tutorial > A learning material that you should read if you are getting started with python

A learning material that you should read if you are getting started with python

不言
Release: 2018-04-17 11:39:50
Original
1218 people have browsed it

Regarding getting started with python, you should read these materials to help you quickly get started with python. It has certain reference value. Friends who are interested can refer to it.

You will always encounter some good ones when learning online. Article, share it with everyone, and thank the author for sharing it.

Introduction to Python


Python is a high-level A scripting language that combines interpreted, compiled, interactive and object-oriented scripting.
Python is designed to be highly readable. Compared with other languages, it often uses English keywords and some punctuation marks in other languages. It has a more distinctive grammatical structure than other languages.
Python is an interpreted language: This means that there is no compilation link in the development process. Similar to PHP and Perl languages.
Python is an interactive language: This means that you can write the program you write in a Python prompt and execute it interactively directly.
Python is an object-oriented language: This means that Python supports object-oriented style or programming techniques in which code is encapsulated in objects.
Python is a language for beginners: Python is a great language for beginning programmers, supporting a wide range of application development, from simple word processing to WWW browsers to games.

Python development history

Python was developed by Guido van Rossum in the late 1980s and 1990s. It was designed at the Dutch National Institute of Mathematics and Computer Science in the early 1990s.
Python itself was developed from many other languages, including ABC, Modula-3, C, C, Algol-68, SmallTalk, Unix shell and other scripting languages, etc.
Like the Perl language, Python source code also follows the GPL (GNU General Public License) agreement.
Now Python is maintained by a core development team, with Guido van Rossum still occupying a crucial role in guiding its progress.

Python Features

1. Easy to learn: Python has relatively Fewer keywords, a simple structure, and a well-defined syntax make it easier to learn.
2. Easy to read: Python code is more clearly defined.
3. Easy to maintain: The success of Python is that its source code is quite easy to maintain.
4. An extensive standard library: One of Python’s biggest advantages is its rich library, which is cross-platform and compatible with UNIX, Windows and Macintosh.
5. Interactive mode: Interactive mode support, you can enter the language to execute the code from the terminal and get the results, interactive testing and debugging code snippets.
6. Portable: Based on its open source nature, Python has been ported (that is, made to work) to many platforms.
7. Extensible: If you need a critical piece of code that runs quickly, or want to write some algorithms that you don’t want to open, you can use C or C to complete that part of the program, and then call it from your Python program .
8. Database: Python provides interfaces to all major commercial databases.
9.GUI programming: Python supports GUIs that can be created and ported to many system calls.
10. Embeddable: You can embed Python into a C/C program, allowing users of your program to gain "scripting" capabilities.

Python environment construction

Python can be applied to multiple platforms including Linux and Mac OS X.
You can enter the "python" command through the terminal window to check whether Python has been installed locally and the installation version of Python.

  • Unix (Solaris, Linux, FreeBSD, AIX, HP/UX, SunOS, IRIX, etc.)

  • Win 9x/NT/2000

  • ##Macintosh (Intel, PPC, 68K)

  • OS/2

  • DOS (Multiple DOS versions)

  • ##PalmOS
  • Nokia Mobile
  • Windows CE
  • Acorn/RISC OS
  • BeOS
  • Amiga
  • VMS/OpenVMS
  • QNX
  • ##VxWorks
  • Psion
  • Python can also be ported to Java and .NET virtual machines.
  • Follow "Information Online", reply to the python gift package, and get the Python gift package video tutorial


##Python download


Python’s latest source code, binary documents, news information, etc. can be viewed on Python’s official website: http://www.python.org /
You can download Python documentation at the following link. You can download documentation in HTML, PDF, PostScript and other formats.

Python document download address: www.python.org/doc/



Python installation

Python has been ported to many platforms (with modifications to enable it to work on different platforms).
You need to download the binary code for the platform you are using, and then install Python.
If binaries for your platform are not available, you need to manually compile the source code using a C compiler.
Compiled source code has more selectivity in functions and provides more flexibility for python installation.
The following are methods for installing Python on different platforms:

1. Install Python on Unix & Linux platforms

The following are methods for installing Python on Unix & Linux platforms Simple steps to install Python on Linux platform:

  • ##Open a WEB browser and visit http://www.python.org/download/

  • Select the source code compression package suitable for Unix/Linux.

  • Download and decompress the compressed package.

  • If you need to customize some options, modify Modules/Setup

  • Execute ./configure script

  • make

  • make install

After performing the above operations, Python will be installed in the /usr/local/bin directory, and the Python library will be installed In /usr/local/lib/pythonXX, XX is the version number of Python you are using.

2. Install Python on Window platform

The following are simple steps to install Python on Window platform:


  • Open the WEB browser and visit http://www.python.org/download/

  • Select the Window platform installation package in the download list. The package format is: python-XYZ .msi file, XYZ is the version number you want to install.

  • To use the installer python-XYZ.msi, the Windows system must support Microsoft Installer 2.0. Just save the installation file to your local computer and run it to see if your machine supports MSI. Windows XP and later versions already have MSI, and many older machines can also install MSI.

  • After downloading, double-click the download package to enter the Python installation wizard. The installation is very simple. You only need to use the default settings and click "Next" until the installation is completed.

3. Install Python on MAC platform

Recent Macs systems all come with a Python environment, you can also link http Download the latest version and install it from ://www.python.org/download/.

For more exciting book lists, please click on Python Programming Essential Book List

to receive useful information: zero-based entry learning python video tutorial


The above is the detailed content of A learning material that you should read if you are getting started with python. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template