[python]List

List is similar to array but beyond. A list can contial various types of data.

list=["string", 1223, 2.718]

to refer an element from a list, we can use

list[0]  python alwsys start counting with 0

list[-1]

to get information about the list

len(list)

 

posted @ 2016-06-05 11:21  Symmetry  阅读(150)  评论(0)    收藏  举报