python 筛选

 

data=[0,9,3,2,1,3,2,-2,-1]
result=[x for x in data if x >=0 ]

 

posted @ 2019-01-03 19:46  anobscureretreat  阅读(181)  评论(0编辑  收藏  举报