list.remove(obj)
移除列表中某个值的 第一个 匹配项 。
Args:
lst = [10, 20, "Hello", 20, "Nanjing"] lst.remove(20) print(lst) # [10, 'Hello', 20, 'Nanjing']