列表

1构造函数

number_list = [1,2,3,4]

string_list = [‘a’, ‘b’, ‘c’, ‘d’]

mix_list = [‘a’, 1, ‘b’, 2]

2访问

string_list[2] #return ‘c’
posted @ 2016-11-06 00:34  L.W.Jin  阅读(72)  评论(0编辑  收藏  举报