Start learning Python ~~, Learn Python ~~
My life is short. I use Python!
Origin: Netherlands
ASCII Code: American Standard Code for Information Interchange
All data is stored and computed in Binary Notation (because the computer uses high voltage and low level to represent 1 and 0 respectively). For example, 52 letters (including uppercase letters) such as a, B, c, and d, as well as numbers such as 0 and 1, and some common symbols (such as *, #, @, etc) when stored in a computer, the binary number is also used to represent the specific binary number used to represent which symbol, of course, everyone can agree on their own set (this is called encoding ), if you want to communicate with each other without confusion, you must use the same encoding rules. Therefore, the relevant American Standardization Organization has introduced ASCII encoding, it specifies which binary numbers are used to represent the above commonly used symbols. The keyboard input is converted to binary and converted to the actual output.
Python
Compile-type language: all are translated and then executed. C ++
Interpreted language: Execute while translating. Python RUBY java c #
Version selection:
Python 2.X is currently mainstream and outdated. It adopts the default encoding (ASSIC) and does not support Chinese characters. Python3.X is a trend. It adopts the default encoding UNICODE and supports Chinese characters. New features are available.
Linux Mac supports Python by default and does not require installation.
Python Interactive Server mode (the program cannot be permanently saved and is mainly used for simple syntax testing ,)
CMD-Python.exe 1, cd: c \ switch to the C root Directory, CD (Change Directory)
Print ("hello world ")
Dir: view the current file to display the disk directory command. Enter dir at the command prompt to display all the items on the disk.
Switch Disk: 2 switch d Disk: d:
Back to the directory of the previous layer: cd... back to Layer 2: cd ../..
Variable: used to store intermediate results during program operation. You can operate or modify it to facilitate future calls. It stores data in the memory and can be called at any time,
Variable name format: student_number studentNumberPython: hump
It must be descriptive. It can only contain _, letters, and numbers. It cannot be special characters (space, # $ &......), Cannot use Chinese as the variable name (in Python, it is acceptable, it is not written by Convention), cannot begin with a number, space; reserved characters cannot be used (print string); keywords cannot be variable names
Constant: the amount that cannot be changed. In py, uppercase is used to represent constants. For example, STUDENT can be modified.
To be continue
Program specification :,