python list 常用

l = [1,2,3,4]
b = [4,5,6]
l.remove(1)  #val
del l[0]         #key



new_list = l.extend(b)   #[1,2,3,4,4,5,6]

new_list = l.append('a')  #[1,2,3,4,'a']
原文地址:https://www.cnblogs.com/cbugs/p/9842841.html