请用索引取出下面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])
--------转自廖雪峰官网
Powered by: 博客园 Copyright © 2024 袁大头go Powered by .NET 9.0 on Kubernetes