Declaring variables:
Name= "Alex li" name2=name print ("My name is", name,name2) name= "Paoche Ge" $name # means take variable print (name,name2) _____>name2 =alex Li Name=paoche Ge #变量化最好要有含义的, English words,
The above declaration is a variable named: Name, the value of the name of the variable is: "Alex li"
Rules for the definition of variables:
1, variable names can only be any combination of letters, numbers, or underscores
2, the first character of a variable name cannot be a number
3, the following keyword cannot be declared as a variable name
{' and ', ' as ', ' assert ', ' Break ', ' class ', ' Continue ', ' def ', ' elif ', ' Else ', ' except ', exec, ' finally ', ' for ', ' from ', Global, ' If ', ' import ', ' in ', ' was ', ' lambda ', ' not ', ' or ', ' pass ', ' print ', Raise,return,try,while,with,yield}
Python notes: Variables