© 1999-2048 dssz.net 粤ICP备11031372号
[其它] python队列数据结构
说明:队列:从一端进,从另一端出, 遵循先进先出原则 # -*- coding=utf-8 -*- # software: 算法学习 # datetime:2020/4/22 8:55 上午 class Node(object): def __init__(self, data=None, next=None): self.data = data self.next = next class Queue(object): """ 链式队列<weixin_38553837> 上传 | 大小:20kb