This commit is contained in:
krahets
2024-04-22 02:35:43 +08:00
parent e95b3bddf2
commit b3c757c9f4
14 changed files with 409 additions and 34 deletions

View File

@@ -1284,7 +1284,7 @@ comments: true
def is_empty(self) -> bool:
"""判断栈是否为空"""
return self._size == 0
return self.size() == 0
def push(self, item: int):
"""入栈"""