Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
revstring
Function · 0.95
parChecker
Function · 0.95
Dec2Bin
Function · 0.95
baseConverter
Function · 0.95
infixToPostfix
Function · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected