Python 中是否有链表预定义库? [英] Is there a linked list predefined library in Python?

查看:26
本文介绍了Python 中是否有链表预定义库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道在 C++ 中它已经存在<代码>#include <列表>现在我很想知道它是否也存在于python中.

I know in c++ it already exist #include <list> Now I am curious to know if it exist in python also.

推荐答案

你也可以看看llist python 包,它提供了一些 deque 没有的有用功能.该包中不仅有双向链表,还有单链表数据结构.恕我直言,这个包的最大优点之一是能够存储对 llist 元素的引用.

You can also take a look at llist python package, which provides some useful features that deque does not. There are not only doubly linked lists, but also single linked lists data structure in that package. IMHO, one of the biggest advantages of this package is the ability to store a reference to the llist elements.

这篇关于Python 中是否有链表预定义库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆