MCPcopy Create free account
hub / github.com/Jack-Lee-Hiter/AlgorithmsByPython / __init__

Method __init__

Stack.py:5–6  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

3class Stack():
4 # 栈的初始化
5 def __init__(self):
6 self.items = []
7 # 判断栈是否为空,为空返回True
8 def isEmpty(self):
9 return self.items ==[]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected