Python for-in loop preceded by a variable

前端 未结 5 881
星月不相逢
星月不相逢 2020-11-22 08:28
foo = [x for x in bar if x.occupants > 1]

After googling and searching on here, couldn\'t figure out what this does. Maybe I wasn\'t searching

5条回答
提交回复
热议问题