Discuss / Python / 作业

作业

Topic source

L = [ ['Apple', 'Google', 'Microsoft'], ['Java', 'Python', 'Ruby', 'PHP'], ['Adam', 'Bart', 'Lisa'] ] print(L[0][0]) print(L[1][1]) print(L[2][2])

比较简单,就是要注意格式:L[竖排位数][横排位数],位数是从0开始数。


  • 1

Reply