1. First procedure:
#-*-coding:utf-8-*-print ("Hello word")
1.1 Parsing:
(1) The meaning of the first line is to tell the Python interpreter to use Utf-8 's code to explain it at compile time.
(2) The second line is to print out "Hello word".
1.2 Then how to execute this procedure?
(1) Open the notebook, save the above code to the. py suffix file, and then open cmd, enter "path to Python file" in the Black window, carriage return ... Finished running.
2. Variables
What is a variable? Let's start by looking at a simple procedure:
#-*-coding:utf-8-*-name= "Jk" Print ("I am", name)
This program runs output: I am Jk
Magic not, "" "" "" "" "" "" "".
Name is a variable. Name= "JK" means defining a variable named name and assigning it a value of "JK".
2.1 Variable name?
Can the variable name be randomly beaten? That's definitely not going to work. Variable names are only letters, numbers, and underscores.
“
Python Development Second article