元祖展开,取出里面得元素
1,while for写法
a=[[1,2,3],[4,5],[6,7,8,9],['a','b','c']]
i=0
while i
****2,while while写法
a=[[1,2,3],[4,5],[6,7,8,9],['a','b','c']]
i=0
while i
3,for while写法
a=[[1,2,3],[4,5],[6,7,8,9],['a','b','c']]
for i in a:
print(i, type(i))
j=0
while j
4,for for写法
a=[[1,2,3],[4,5],[6,7,8,9],['a','b','c']]
for i in a:
print(i, type(i))
for ys in i:
print(ys, end='\n')
5,for for ,range写法
a=[[1,2,3],[4,5],[6,7,8,9],['a','b','c']]
for i in range(0,len(a)):
print(a[i])
for j in range(0,len(a[i])):