Python equivalent for C++ STL vector/list containers

前端 未结 4 650
小鲜肉
小鲜肉 2020-12-29 06:29

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.

4条回答
  •  滥情空心
    2020-12-29 06:38

    Lists are sequences.

    see http://docs.python.org/tutorial/datastructures.html

    append is like push_back, see the other methods as well.

提交回复
热议问题