2016年6月1日

Python__实现队列

摘要: Python__实现队列 class Queue(): def __init__(qu,size): qu.queue=[]; qu.size=size; qu.head=-1; qu.tail=-1; def Empty(qu... 阅读全文

posted @ 2016-06-01 23:29 胖胖的乓乓 阅读(127) 评论(0) 推荐(0) 编辑

Python 实现栈

摘要: #coding=utf-8class Stack(): def __init__(st,size): st.stack=[]; st.size=size; st.top=-1; def push(st,content): if ... 阅读全文

posted @ 2016-06-01 23:15 胖胖的乓乓 阅读(175) 评论(0) 推荐(0) 编辑

导航