会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
4Thing
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
17
18
19
20
21
2016年7月4日
每天CookBook之Python-003
摘要: 使用heapq获取最大N项和最小N项
阅读全文
posted @ 2016-07-04 18:15 4Thing
阅读(91)
评论(0)
推荐(0)
2016年7月3日
每天CookBook之JavaScript-001
摘要: ``` javascript 001 ```
阅读全文
posted @ 2016-07-03 22:35 4Thing
阅读(87)
评论(0)
推荐(0)
每天CookBook之Python-002
摘要: ``` bash >>> from collections import deque >>> q = deque(maxlen=3) >>> q.append(1) >>> q.append(2) >>> q.append(3) >>> print q deque([1, 2, 3], maxlen=3) >>> q.append(4) >>> print q deque([2, 3, 4], m...
阅读全文
posted @ 2016-07-03 21:44 4Thing
阅读(87)
评论(0)
推荐(0)
2016年7月1日
每天CookBook之Python-001
摘要: ```bash >>> p = (4, 5) >>> x, y = p >>> print x, y ``` ```bash >>> data = ['ACME', 50, 91.1, (2016, 05, 16)] >>> name, shares, price, date = data >>> print name, shares, price ,date ACME 50 91.1 (201...
阅读全文
posted @ 2016-07-01 21:39 4Thing
阅读(88)
评论(0)
推荐(0)
上一页
1
···
17
18
19
20
21
公告