Discuss / Python / 最后一个元素可以这样

最后一个元素可以这样

Topic source

爱调小铺

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

打印Apple:

print(L[0][0])

打印Python:

print(L[1][1])

打印Lisa:

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


  • 1

Reply