1.数据容器相当于C的数组 有list,tuple(元组),str,set(集合),dict五种数据容器 2.list(列表) 列表中可存在不同的数据类型,可嵌套 #反向索引 name_list = [元素1,元素2,元素3] print(name_list[-1]) #元素3 print(name_list[-2]) #元素2 -- #嵌套索引 name_list = [[元素1,元素2,元素3],[元素4,元素5,元素6]] print(name_list[1][1]) #得到元素5 [元…