【编程练习】
文章平均质量分 50
iteye_5013
这个作者很懒,什么都没留下…
展开
-
Python练习一 文件操作
一. 统计文件的行数:每个文件的行数及总行数原创 2012-03-04 10:58:58 · 140 阅读 · 0 评论 -
【Python练习】利用列表List构建栈和队列
栈 栈是一个后进先出(LIFO)的数据结构,通常具有两个基本方法 push和pop,push负责将新元素添加到栈尾,pop负责将栈尾的元素删除。 #!/usr/bin/env python "" stack = [] def push(): stack.append(raw_input('Enter new string :').strip()) def pop...原创 2012-03-04 23:47:29 · 220 阅读 · 0 评论