📜  Filter les nombres d'une liste - Python 代码示例

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

代码示例1
>>> a = [1,4,2,7,1,9,0,3,4,6,6,6,8,3]
>>> b = []
>>> for x in a:
...     if x > 5:
...         b.append(x)
... 
>>> b
[7, 9, 6, 6, 6, 8]