📜  在 for 循环中追加 python 代码示例

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

代码示例1
a=[]
for i in range(5):    
    a.append(i)
a # the list with the new items.