📜  列表理解python代码示例

📅  最后修改于: 2022-03-11 14:46:49.789000             🧑  作者: Mango

代码示例1
# owner github -> linikerunk
squares = [item * item for item in range(5)]
>>> squares
[0, 1, 4, 9, 16]