📜  python creare una list comprehension - Python 代码示例
📅  最后修改于: 2022-03-11 14:47:05.077000             🧑  作者: Mango
代码示例2
quadrati = [n**2 for n in range(10)]
print(quadrati)
[0, 1, 4, 9, 16, 25, 36, 49, 64, 81]