lst = ['张无忌','张三丰','张翠山','刘能','张嘉欣','刘嘉玲','刘老根']
new_lst = []
for el in lst:
    if '张' in el:
        new_lst.append(el)
for el in  new_lst:
    lst.remove(el)
print(lst)

相关文章:

  • 2022-12-23
  • 2022-01-28
  • 2022-12-23
  • 2021-05-16
  • 2022-12-23
  • 2023-03-19
  • 2022-12-23
  • 2021-10-28
猜你喜欢
  • 2022-12-23
  • 2021-07-19
  • 2022-01-11
  • 2021-10-29
  • 2021-05-26
  • 2021-05-07
相关资源
相似解决方案