列 表
1、创建列表并赋值
>>> alist=[123,"abc",4.56,["inner","list"],7-9j]
>>> anotherlist=[None,"something to see here"]
>>> print(alist)
[123, 'abc', 4.56, ['inner', 'list'], (7-9j)]
>>> print(anotherlist)
[None, 'something to see here']
>>> alistThatStartedEmpty=[]
>>> print(alistThatStartedEmpty)
[]
>>> list("foo")
['f', 'o', 'o']
2、访问列表中的值
>>> alist
[123, 'abc', 4.56, ['inner', 'list'], (7-9j)]
>>> alist[0]
123
>>> alist[1:4]
['