Discuss / Python / 向楼上学习

向楼上学习

Topic source

Geek_MrHowe

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

向楼上学习

L = [
    ['Apple', 'Google', 'Microsoft'],
    ['Java', 'Python', 'Ruby', 'PHP'],
    ['Adam', 'Bart', 'Lisa']
]
# 打印L
print('# L:\n',L,'\n')
# 打印Apple:
print('# 打印Apple:',L[0][0],'\n')
# 打印Python:
print('# 打印Python:',L[1][1],'\n')
# 打印Lisa:
print('# 打印Lisa:',L[2][2],'\n')

  • 1

Reply