📜  python 过滤器列表的 int 和字符串 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:08.748000             🧑  作者: Mango

代码示例1
def filter_list(l):
  'return a new list with the strings filtered out'
  return [i for i in l if not isinstance(i, str)]