Python列表中的列表元素(嵌套列表)访问

tList = [ ['abc', '123'],  ['def', '456'] ,  ['ghi', '789"'] ]
for each in tList:
  if each[0] == 'abc':
  print(each)

posted @ 2018-12-10 17:00  coffee~  阅读(7974)  评论(0编辑  收藏  举报