您的位置: 首页 > IT文章 > python练习题之list python练习题之list 分类: IT文章 • 2024-12-01 14:09:31 python练习之list请用索引取出下面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]) --------转自廖雪峰官网