会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
李俊鹏Python
博客园
园子
首页
新随笔
联系
管理
订阅
2019年9月11日
2019.9.11-栈的实现【代码】
摘要: 1 # coding:utf-8 2 3 class Stack(object): 4 """棧""" 5 def __init__(self): 6 self.__list = [] 7 8 def push(self, item): 9 """添加一個新的元素item到棧頂""" 10 self
阅读全文
posted @ 2019-09-11 23:32 李俊鹏Python
阅读(119)
评论(0)
推荐(0)
公告