1. Install the Python interpreter and IDE, choose Pycharm here, with the environment
2. Examples of the list:
Python has no array, only a list of meta combinations
List examples are as follows
movies=["Titanic", "The Big Bang Theory"]
Print (Movies[0])
List supports operations such as Insert,pop,remove,append
Lists can contain mixed types of data
3.for Each statement is combined with a list
For Each_movie in movies:
Print (Each_movie)
List processing Code python programmer called "group"
4. List nesting
List allows nesting, more flexible than multidimensional arrays
Supports isinstance detection type, such as Isinstance (***,list) to detect if an identifier is a list
Processing multi-level list nesting (removing content from all lists) requires multiple layers of judgment and a for statement-resolution: Recursive?
5.python function
def function name (parameter):
function body
Using recursion to solve a list of multiple nesting problems, recursive default depth of 100, can be changed
Head First Python Chapter one initial python