This commit is contained in:
krahets
2023-05-22 22:01:18 +08:00
parent 29807a3761
commit be77ba7a70
16 changed files with 60 additions and 58 deletions

View File

@@ -1220,7 +1220,7 @@ comments: true
def to_list(self) -> list[int]:
"""返回列表用于打印"""
res: list[int] = [0] * self.size()
res = [0] * self.size()
j: int = self.__front
for i in range(self.size()):
res[i] = self.__nums[(j % self.capacity())]