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