请用索引取出下面list的指定元素,分别为Apple,Python,Lisa
-*- coding: utf-8 -*-
请用索引取出下面list的指定元素
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])
Original: https://www.cnblogs.com/chling/p/11697218.html
Author: it_逗逗
Title: Python 练习题:用索引取出LIST中的值
原创文章受到原创版权保护。转载请注明出处:https://www.johngo689.com/585339/
转载文章受原作者版权保护。转载请注明原作者出处!