Update array_stack.py
An type error of ";"
This commit is contained in:
parent
acfdc713ba
commit
6879f7dc21
@ -60,8 +60,8 @@ if __name__ == "__main__":
|
|||||||
print("栈顶元素 peek =", peek)
|
print("栈顶元素 peek =", peek)
|
||||||
|
|
||||||
""" 访问索引 index 处元素 """
|
""" 访问索引 index 处元素 """
|
||||||
num = stack.get(3);
|
num = stack.get(3)
|
||||||
print("栈索引 3 处的元素为 num =", num);
|
print("栈索引 3 处的元素为 num =", num)
|
||||||
|
|
||||||
""" 元素出栈 """
|
""" 元素出栈 """
|
||||||
pop = stack.pop()
|
pop = stack.pop()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user