代码有一点小疑问, append和insert优先级哪个高?
代码有一点小疑问, append和insert优先级哪个高? 为啥先执行append后再insert不行
L = ['Adam', 'Lisa', 'Bart'] L.insert(0,'WGB') print L L.append('666') print L L.insert(-1,"888888888") print L console.log: ['WGB', 'Adam', 'Lisa', 'Bart'] ['WGB', 'Adam', 'Lisa', 'Bart', '666'] ['WGB', 'Adam', 'Lisa', 'Bart', '888888888', '666']