mm111222 发表于 2015-12-1 13:00:12

python练习之list

  请用索引取出下面list的指定元素:


# -*- coding: utf-8 -*-
L = [
['Apple', 'Google', 'Microsoft'],
['Java', 'Python', 'Ruby', 'PHP'],
['Adam', 'Bart', 'Lisa']
]
  # 打印Apple:
print(L)
# 打印Python:
print(L)
# 打印Lisa:
print(L)
  --------转自廖雪峰官网
页: [1]
查看完整版本: python练习之list