摘要: # 1. 新增 lst = [] lst.append("周杰伦") # 追加 在最后添加, 效率比较高 lst.append("周芷若") lst.append("周公瑾") print(lst) lst = ["刘德华", "渣渣辉", "古天乐", "陈小春"] lst.insert(2,"马德华") # 插入, 可能会导致元素移动 print(lst) lst = ["刘昊然",... 阅读全文
posted @ 2018-09-06 16:53 冒蓝火的加特林哒哒哒 阅读(162) 评论(0) 推荐(0) 编辑