day06_03 购物车讲解01
1.0 思路
1.1 列表嵌套
# name1 = ['mac','book','bike','kindle'] a = [[1,2,3],'alex',(2,3,4)] print(a[0]) #>>>[1, 2, 3] print(a[0][1]) #>>>2 a[0][2] = 4 print(a) #>>>[[1, 2, 4], 'alex', (2, 3, 4)]
posted on 2017-09-09 09:57 darkalex001 阅读(100) 评论(0) 编辑 收藏 举报