🌈 搜索
📅  最后修改于: 2022-03-11 14:45:50.190000             🧑  作者: Mango
>>> x = [1, 2, 3, 4, 5] >>> y = [2*a for a in x if a % 2 == 1] >>> print(y) [2, 6, 10]