📅  最后修改于: 2022-03-11 14:46:14.998000             🧑  作者: Mango
using enumerate instead of range or len
a = [f(n) for n, _ in enumerate(L)]
using range and len
a = [f(n) for n in range(len(L))]