First day of Python beginners

Source: Internet
Author: User

Python basics: 1day:1, Python Basics: A, programming language introduction:    A, computers can only understand 0 and 1. Write code in accordance with a certain rule, let the computer help you work;    B, machine language: the lowest level of language, composed of 0 and 1;    C, assembly language: The use of abbreviations in English identifiers, easier to understand a certain logic;    D, high-level language: equivalent to assembly language, the developer is more friendly; B, high-level language: According to the way of conversion binary is divided into compiled language and interpreted language;    A, compiled: first translated into binary, followed by direct execution.                       Benefits: High Program execution efficiency                       Cons: Poor cross-platform capabilities, Modification inconvenient                       Representative language: C, c+ +    B, explanatory type: similar simultaneous translation.                       Pros: Natural cross-platform, easy to modify                       Cons: Relying on compilers, slow running                       language: Python, Java, PHP2, PythOn install a, the first Python program: hello.py

3, Variable: temporary storage of data, memory consumption. For subsequent programs or code calls A, declare variables: name = "Fany" B, naming rules: A, letter, underscore, any combination of numbers; B, cannot contain special characters; C, cannot start with a number; d, cannot use keyword as variable name; c, low name: a , without Chinese declaration as variable b, variable name cannot be too long C, variable name cannot lied D, variable name cannot use Pinyin

First day of Python beginners

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.