我不明白我必须指定的第一件事来理解 python 列表[重复]

问题描述 投票:0回答:0

我理解理论上的列表理解是什么,但是使用以下语法无法弄清楚第一个“x”的含义:

filteredList = [x for x in list if x > 0]
python arrays list-comprehension
© www.soinside.com 2019 - 2024. All rights reserved.