摘要:
1 class stack(object): 2 def __init__(self): 3 self.items=[] 4 5 def is_empty(self): 6 if len(self.items)>0: 7 return False 8 return True 9 10 ... 阅读全文
摘要:
class singlenode(object): def __init__(self,item): self.item=item self.next=None 1 class singlink(object): 2 def __init__(self): 3 self.head=None 4 5 def i... 阅读全文