Discuss / Python / 列表与元组作业

列表与元组作业

Topic source

半碗水

#1 Created at ... [Delete] [Delete and Lock User]

# -*- coding: utf-8 -*-

L = [

    ['Apple', 'Google', 'Microsoft'],

    ['Java', 'Python', 'Ruby', 'PHP'],

    ['Adam', 'Bart', 'Lisa']

]

print(L[0][0])

print(L[1][-3])

print(L[-1][-1])

Apple

Python

Lisa


  • 1

Reply