摘要: 7 class Node(object): 8 def __init__(self,data): 9 self.data = data 10 self.next = None 11 12 class linkqueue(object): 13 def __init__(self): 14 self. 阅读全文
posted @ 2020-11-02 19:43 zou-ting-rong 阅读(286) 评论(0) 推荐(0)
摘要: class seqqueue(object): 8 def __init__(self,maxsize): 9 self.maxsize = maxsize 10 self.queueelem = [] 11 self.count = 0 12 13 def isEmpty(self): 14 re 阅读全文
posted @ 2020-11-02 19:15 zou-ting-rong 阅读(591) 评论(0) 推荐(0)
摘要: 7 """ 8 用一个类来实现一个节点 9 """ 10 class Node(object): 11 def __init__(self,data): 12 self.data = data 13 self.next = None 14 class linkstack(object): 15 de 阅读全文
posted @ 2020-11-02 12:41 zou-ting-rong 阅读(317) 评论(0) 推荐(0)
摘要: 7 class sqstack(object): 8 def __init__(self,maxsize): 9 self.maxsize = maxsize 10 self.stackElem = [] 11 self.top = 0 12 13 def clear(self): 14 self. 阅读全文
posted @ 2020-11-02 12:15 zou-ting-rong 阅读(425) 评论(0) 推荐(0)