python列表list取值嵌套

作者: python 发布时间: 2022-10-16 浏览: 503 次 编辑

python列表list取值嵌套

a = [["a","b"],["c","d"]]
print(a[0][0])  #第一个列表内取值第一个值