这可以写成一行没有列表理解吗?
for x in vec: if x > 3: ... ...
python list-comprehension
list-comprehension ×1
python ×1