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

Method size

Stack.py:20–21  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

18 return self.items[len(self.items)-1]
19 # 判断栈的大小
20 def size(self):
21 return len(self.items)
22
23# 栈属性测试
24# 测试数据

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected