当我跑
[w*2 for w in [1, 2, 3]]
我明白了
[[2, 4, 6]]
但实际上我想要
[2, 4, 6]
显然以下是可选的,但我不想依赖它:
[w*2 for w in [1, 2, 3]][0]
当我跑
[w*2 for w in [1, 2, 3]]
我明白了
[[2, 4, 6]]
但实际上我想要
[2, 4, 6]
显然以下是可选的,但我不想依赖它:
[w*2 for w in [1, 2, 3]][0]