列表.insert()
score = [23, 5, 42, 14, 36, 43, 82, 7, 89, 61] print(score) score.insert(0, 200) print(score)
用insert插入insert(下标, 插入元素)
y =[23, 5, 42, 14, 36, 43, 82, 7, 89, 61] print(y) y.insert(0, 200) print(y)
a.insert(0,你要插入的数字)