会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
wfw001
测试必备基础技能
博客园
::
首页
::
新随笔
::
联系
::
订阅
::
管理
公告
2019年1月19日
栈的使用
摘要: import osimport collections#通过栈遍历目录(深度遍历)def test(path): stack=[] stack.append(path) #处理栈 while len(stack)!=0: dirpath=stack.pop() filelist=os.listdir
阅读全文
posted @ 2019-01-19 09:17 wfw001
阅读(138)
评论(0)
推荐(0)