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']
Sign in to make a reply
屾屾丶
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']