📜  List Comprehension 生成列表 - Python 代码示例
📅  最后修改于: 2022-03-11 14:46:37.499000             🧑  作者: Mango
代码示例1
# generate a list
li = [ i+1 for i in [1,2,3] ]
print(li)
# [2, 3, 4]