1. 首页
  2. 数据库
  3. 其它
  4. python双向链表实现实例代码

python双向链表实现实例代码

上传者: 2020-12-31 15:17:08上传 PDF文件 63KB 热度 19次
示意图: python双向链表实现代码: 复制代码 代码如下:#!/usr/bin/python# -*- coding: utf-8 -*- class Node(object): def __init__(self,val,p=0): self.data = val self.next = p self.prev = p class LinkList(object): def __init__(self): self.head = 0 def __getitem__(self, key): if s
下载地址
用户评论