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

Method push

Stack.py:11–12  ·  view source on GitHub ↗
(self, item)

Source from the content-addressed store, hash-verified

9 return self.items ==[]
10 # 向栈内压入一个元素
11 def push(self, item):
12 self.items.append(item)
13 # 从栈内推出最后一个元素
14 def pop(self):
15 return self.items.pop()

Callers 6

buildParseTreeFunction · 0.95
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