mirror of
https://github.com/krahets/hello-algo.git
synced 2024-12-27 14:56:29 +08:00
build
This commit is contained in:
parent
b66329ae4c
commit
a58e499063
1 changed files with 1 additions and 1 deletions
|
@ -939,7 +939,7 @@ comments: true
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
"""构造方法"""
|
"""构造方法"""
|
||||||
self.__capacity: int = 10 # 列表容量
|
self.__capacity: int = 10 # 列表容量
|
||||||
self.__nums: my_list[int] = [0] * self.__capacity # 数组(存储列表元素)
|
self.__nums: list[int] = [0] * self.__capacity # 数组(存储列表元素)
|
||||||
self.__size: int = 0 # 列表长度(即当前元素数量)
|
self.__size: int = 0 # 列表长度(即当前元素数量)
|
||||||
self.__extend_ratio: int = 2 # 每次列表扩容的倍数
|
self.__extend_ratio: int = 2 # 每次列表扩容的倍数
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue