Python 3 first day of learning--python Basics

Source: Internet
Author: User

  The first day of Python learning

Write this blog to motivate yourself and share your experiences and issues with others.

First, class notes

1.Python 3.0 and Python 2.0 incompatible Python 2.6 and Python 2.7 are excessive versions of Python

2. The installation of Python and the operation of HelloWorld do not take notes.

3. Variable-----is not allowed to have spaces when naming some intermediate result variables in the process of storing program operation

Constant variable constants in 4.Python are all capitalized when named, but can still be changed just to differentiate

5. Memory recovery mechanism del--manually forcibly remove the "house number"

6. Unicode is backwards compatible gb2312 Python 3.0 does not need to be changed directly support Chinese

7. Comment Line comments with #

Multiple lines of comment with "'" "or" "" ""

8. Use input () for the purpose of user interaction. It is important to note that all data received by input is a string, even if the number is still treated as a string

Second, experience

From their own choice to embark on the path of Python, only hope that they can persist, the first day of learning are some basic knowledge, most of which have been learned in C, Java has embodied, but after all, this is a long way, the revolution has not been successful, comrades still need to work hard.

Python 3 first day of learning--python Basics

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.