==列表写法==
>>> classmates = ['Michael', 'Bob', 'Tracy']
>>> classmates
['Michael', 'Bob', 'Tracy']
==获取列表单一数据==
#获取第一条数据
>>> classmates[0]
Michael
#获取最后一条数据
>>> classmates[-1]
Tracy
==列表-增删改==
#在尾部新增数据
>>> classmates.append('Adam')
>>> classmates
['Michael', 'Bob', 'Tracy', 'Adam']
#在指定位置插入数据
>>> classmates.insert(1, 'Jack')
>>> classmates
['Michael', 'Jack', 'Bob', 'Tracy', 'Adam']
#删除末尾数据
>>> classmates.pop()
'Adam'
>>> classmates
['Michael', 'Jack', 'Bob', 'Tracy']
#删除指定数据
>>> classmates.pop(1)
'Jack'
>>> classmates
['Michael', 'Bob', 'Tracy']
#修改指定数据
>>> classmates[1] = 'Sarah'
>>> classmates
['Michael', 'Sarah', 'Tracy']
==tuple固定列表==
>>> classmates = ('Michael', 'Bob', 'Tracy')