摘要: 1.remove() 按值删除: num_list = [1, 2, 2, 2, 3] for item in num_list: if item == 2: num_list.remove(item) print(num_list) num_list = [1, 2, 2, 2, 3] for i 阅读全文
posted @ 2020-04-23 11:36 落月_YU 阅读(289) 评论(0) 推荐(0) 编辑