python study notes eight (boolean value to NULL, list)

Boolean value : A Boolean value True and False only two kinds of value
null : python is a special value, represented by None; None not be interpreted as 0, because 0 is meaningful, and None is a special value.
List :
Create a list
format: [list = name list of options Option 1. List 2. List option 3, ..., n] list of options
eg: create an empty list
Here Insert Picture Description
to create a list with elements
Here Insert Picture Description
Note: The list of elements is not required the same type (data elements of the list can be different types)
Here Insert Picture Description
access list element
argument
format: name list [index]
Note: Do not cross-border (subscript is beyond the range indicated)
Here Insert Picture Description
a list of the operation
list in the combo
Here Insert Picture Description
repeat list
Here Insert Picture Description
determination element whether in the list
Here Insert Picture Description
list intercept
Here Insert Picture Description
two-dimensional list : the list of elements for the list too
Here Insert Picture Description

Guess you like

Origin blog.csdn.net/weixin_38324954/article/details/94381389