Storing a list of object instances is very simple
class MyClass(object):
def __init__(self, number):
self.number = number
my_objects = []
for i in range(100):
my_objects.append(MyClass(i))
# later
for obj in my_objects:
print obj.number
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…