Enter one of the Python World--python Learning Series

Source: Internet
Author: User
Tags mathematical functions

Install PythonWindow Download Install Python

Python website address: https://www.python.org/

Go to the official website to download the Python client, now the newest python is python3.5. There are some differences between python2.x and 3.x, and the use is not fully compatible, so I downloaded the version of python2.5.

Python 2.x more than 3.x difference reference: http://www.cnblogs.com/codingmylife/archive/2010/06/06/1752807.html

I download version address: HTTPS://WWW.PYTHON.ORG/DOWNLOAD/RELEASES/2.5.1/selected: Forwin64-amd64 users: Python-2.5.1.amd64.msi

Once the download is complete, just click on install, it's very simple. After the installation is complete, check to see if there is Python in the Start menu, and if you have the Click Folder Idle, the installation will be successful if you use it properly.

For the first time, or the recommended use of idle, I am using the Eclipse plugin PYDV. Refer to Http://www.ibm.com/developerworks/cn/opensource/os-cn-ecl-pydev/index.html

Linux Installation

Because Linux generally has pre-installed Python, first typed in the command line: Python, the smooth entry means that it is preinstalled. or ls-l/usr/bin/python* to view the preinstalled version.

Otherwise use sudo apt-get install python

Python Concept Introduction

"Python is an interpreted, object-oriented, high-level programming language with dynamic semantics."

algorithm : The algorithm is a detailed description of how to accomplish a task.

expression : An expression is a part of a computer that is used to represent a value. For example, it is an expression that indicates that the value is 4. Simple expressions are built with the processing of literals by operators and functions.

variable : A variable is a name that represents a value. Python does not need to declare variable types in advance, and variable names can include letters, numbers, underscores (_), but variables cannot start with numbers.

statement: A statement is an instruction that tells the computer to do something. It may involve changing variables, printing content to the screen, importing modules, or many other operations.

functions : They can have parameters and return values.

Modules : Modules are extensions to Python functionality that can be imported into Python. As the Math module provides a number of useful mathematical functions, this is the same as the Java language jar,c/c++ library. Import Module statement: Import math or from math import sqrt

program : A set of instructions that complete a task in accordance with a specific execution order.

Enter one of the Python World--python Learning Series

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.