Python3. X Learning Note (WEEK1) old boy 20160114

Source: Internet
Author: User

Learning background:

I have been on a business trip in Tibet for nearly 2 months, real-time thinking will be proficient in a programming language and write the program I want to be my years of dream, must find time to achieve, back in high school, their interest in programming is very strong, parents to buy their own learning machine plug-in, can only knock basic code, At the same time the school has computer classes, often and teachers to discuss programming problems, time flash more than 20 years passed, programming down, but my dream did not put down, just see the old boy on the 51cto Web site to open the network training Python language classes, I hesitated to insist on the plateau do not come down, and later want to enroll early study, Can not delay any longer, I resolutely reported the name, spent more than 5,000 money, their own pressure. Every week there is a network of online courses, mainly to answer questions and assignments, and program analysis.

I didn't think the first class gave me a horse, I have been self-taught the C language, not 0 basis, but I am difficult to see more than the video sent to, feel will, but write code to always error, say the truth homework also beyond the first class of study range, this time I had 60 copies C-, I am disappointed, But now that you have enrolled, learn the end. I tried to suppress the time I had to watch videos during the day. Here is a summary of my first week of study.

A brief history of Python
1, 1989 written by Guido Python language compiler. Create a language between C and Shell, full-featured, easy to learn, easy to use, and extensible. 1991 the first Python compiler was born, implemented in C language.
2, with July 3, 2010 Discovery 2.x version of the last version 2.7, and December 3, 2008 Release 3.0 version, to the current September 2015 release to 3.5 version
3, 2.7 version will not be updated, all the latest standard library features only in 3. Version x, and the 3.x version of the previous 2.x version of a lot of repetitive, inefficient content has been reduced, some changes in syntax, such as the most basic print 2.x version of print "Python ver 2.x" 3.x version will error correctly print ("Python Ver 3.x ")
4, Python3 is now and future language, python2.x is the language of the past Python language author Guido van Rossum announced that Python 2.7 support time extended to 2020 years.

Ii. Introduction of development tools
1, the recommended installation Pycharm, the latest version 5.03, because Pycharm is an IDE, development tools, you can remind the supplementary statements and queries, easy to write code.
2, install Python in Windows need to set environment variables, I installed python3.4 automatically already set the environment variable, set the purpose is to enter Python in any directory can be run.

environment variable path join your current installation of Python's actual path such as D:\python34\

Third, the basic knowledge

1. Print Hello World

is Python 3.x and 2.x versions different print is followed by parentheses

2. Variables and Assignments

Assigning a variable to the right if the string must be quoted, otherwise the default is a variable and an error

A variable cannot be preceded by a number, or the keyword begins with an and, for example, as follows:

1), variable names can only be any combination of letters, numbers, or underscores
2), the first letter of a variable name cannot be a number
3), the keyword cannot be declared as a variable name, for example:
False class finally is returnnone continue-lambda trytrue def from nonlocal whileand del Global n OT Withas elif If or yieldassert else import passbreak except in raise

Python3. X Learning Note (WEEK1) old boy 20160114

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.