MCPcopy
hub / github.com/Jack-Lee-Hiter/AlgorithmsByPython / isEmpty

Method isEmpty

Stack.py:8–9  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

6 self.items = []
7 # 判断栈是否为空,为空返回True
8 def isEmpty(self):
9 return self.items ==[]
10 # 向栈内压入一个元素
11 def push(self, item):
12 self.items.append(item)

Callers 5

revstringFunction · 0.95
parCheckerFunction · 0.95
Dec2BinFunction · 0.95
baseConverterFunction · 0.95
infixToPostfixFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected