请用索引取出下面list的指定元素:
# -*- coding: utf-8 -*-
L = [
['Apple', 'Google', 'Microsoft'],
['java', 'Python', 'Ruby', 'php'],
['Adam', 'Bart', 'Lisa']
]
# 打印Apple:
PRint(L[0][0])
# 打印Python:
print(L[1][1])
# 打印Lisa:
print(L[2][2])
--------转自廖雪峰官网
请用索引取出下面list的指定元素:
# -*- coding: utf-8 -*-
L = [
['Apple', 'Google', 'Microsoft'],
['java', 'Python', 'Ruby', 'php'],
['Adam', 'Bart', 'Lisa']
]
# 打印Apple:
PRint(L[0][0])
# 打印Python:
print(L[1][1])
# 打印Lisa:
print(L[2][2])
--------转自廖雪峰官网