Main content:
- Variable storage
- Formatting of strings
- Bit arithmetic
- Enter ciphertext display
- If...else
- Ternary operations
- List
- Dictionary
Name2 directly points to the memory data, when the name changes, the previously stored data values and location are unchanged, new memory space to store new data.
The string is%s; integer%d; floating-point%f;%r is raw data, not escaped
Introduced Getpass,import gatpass use: pwd = Getpass.gatpass ("Passwod:") Pycharm does not support running continue is jumping out of this loop, continuing the next loop break out of the entire loop
If the condition is true: result = value 1
If the condition is false: result = value 2
Space-occupying
- Tuples, not modifiable after definition
- String
A key-value data type, used as a dictionary of our school, to check the details of the corresponding page by strokes and letters. Features of the dictionary:
- Dict is disordered.
- Key must be unique
Job: 1, print provincial and county level three menu, any layer of Q exit, any layer B return upper 2, shell sed replacement function. Implemented in the command line
Python Learning-day2:python Foundation II