返回顶部
摘要: 1、列表的增删改查 1.1、增 1 #append:在末尾增加,直接修改旧的列表 2 lst = ['钢铁侠','蜘蛛侠','雷神','灭霸'] 3 lst.append('绿巨人') 4 print(lst) 5 #result: 6 # ['钢铁侠', '蜘蛛侠', '雷神', '灭霸', '绿 阅读全文
posted @ 2019-05-12 13:37 DCooo 阅读(250) 评论(0) 推荐(0) 编辑