等效于C ++ STL矢量/列表容器的Python

问题描述:

Python 中是否有类似内容,我将用于像一个向量和一个列表?

Is there something similar in Python that I would use for a container that's like a vector and a list?

任何链接也将有所帮助.

Any links would be helpful too.

您可以使用内置列表-基础实现类似于C ++向量.尽管有些事情有所不同-例如,您可以将不同类型的对象放在一个相同的列表中.

You can use the inbuilt list - underlying implementation is similar to C++ vector. Although some things differ - for example, you can put objects of different type in one and the same list.

http://effbot.org/zone/python-list.htm