Python practice
来源:互联网 发布:不闷痘的防晒霜 知乎 编辑:程序博客网 时间:2024/06/02 02:16
Today, I try to use the modules in Python, and downloaded some popular modules. The BeautifulSoup and Requests..
And I start to write more advanced program with data structure. I tried the que in the module "deque".
from collections import dequenum = deque([])def insert(val): if len(num) == 0: num.append(val) return if val > num[len(num) - 1]: num.append(val) return for j in range(len(num)): if num[j] >= val: break num.insert(j, val)tot = int(input("the number of num :\n"))for i in range(tot): insert(int(input()))for i in range(tot): print(num.popleft())
I search for the ants program on the Internet these days, and I found some points I need to get through later on.
1. threading work.
2. regular expression.
3. JASON and BSON.
Hope I can write an ant in the very soon.
阅读全文
0 0
- Python practice
- Python practice
- Python OOP Practice
- python practice 1
- python practice 02
- python practice 03
- python practice 04
- Practice In Python UT & Coverage
- Good logging practice in Python
- practice
- practice
- Learn Python By Practice — 文件读写
- Python 入门教程 14 ---- Practice Makes Perfect
- [Interactive Python]Practice Exercises for Functions 解答
- Python in Practice.pdf 英文原版 免费下载
- 神经网络与深度学习(二)- Python, Vectorization and Practice
- CodeCademy-Python Learning:Practice Makes Perfect学习笔记-“Something went wrong :(”报错
- Interview Practice
- yolo v2解读
- Elasticsearch基础教程
- Java Runnable接口与synchronized关键字(同步方法)
- 面试题-接口和抽象类的区别
- java实现两个变量值交换不使用第三个变量
- Python practice
- 减少HTTP请求之合并图片详解(大型网站优化技术)
- html状态码
- mysql高版本5.6到5.5或低版本复制中出现的错误
- QEMU 2.10.1 编译安装
- 每天随便写点项目中遇到的细节问题(2)
- 字节序问题
- jmeter 线程组配置(持续时间、结束时间)
- JS实现点击某张图片弹出上传图片窗口以及限制图片格式和大小