【发布时间】:2012-01-06 19:55:07
【问题描述】:
我希望能够增加列表的名称,以便创建多个空列表。
例如,我想要。
List_1 = []
List_2 = []
...
List_x = []
我一直在工作:
for j in range(5): #set up loop
list_ = list_ + str(j) # increment the string list so it reads list_1, list_2, ect
list_ = list() # here I want to be able to have multiple empty lists with unique names
print list_
【问题讨论】: