Home  >  Article  >  Backend Development  >  Python 的 List 更接近 C++ 的 vector,deque 还是 list ?

Python 的 List 更接近 C++ 的 vector,deque 还是 list ?

WBOY
WBOYOriginal
2016-06-06 16:23:442067browse

回复内容:

谢不邀。

vector。

CPython的源码里写着呢:
Python 的 List 更接近 C++ 的 vector,deque 还是 list ?cpython/listobject.h · python/cpython · GitHub vector Python list implementation
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn