python 序列(list,tuple,str)基本操作
摘要:
添加元素: mylist.append() mylist.extend([1, 2]) mylist.insert(1, "pos")删除元素: mylist.remove(value) #del语句,并非函数 del mylist[pos] #del mylist #从内存中删除... 阅读全文
posted @ 2015-11-22 20:43 阳台 阅读(434) 评论(0) 推荐(0)