Discuss / Python / 作业

作业

Topic source

屾屾丶

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

L=[

[],

[],

[]

]

L[0].append('Apple')

L[0].append('Microsoft')

L[0].insert(1,'Google')

#此时L[0]=['Apple','Google','Microsoft']

L[1].append('Java')

L[1].append('Python')

L[1].append('Ruby')

L[1].append('PHP')

#此时L[1]=['Java', 'Python', 'Ruby', 'PHP']

L[2].append('Adam')

L[2].append('David')

L[2].append('Bart')

L[2].append('Lisa')

L[2].pop(1)

#此时L[2]=['Adam', 'Bart', 'Lisa']


  • 1

Reply