-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathatom.xml
591 lines (285 loc) · 24 KB
/
atom.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>毕小烦的博客</title>
<subtitle>每天学习一点点</subtitle>
<link href="/atom.xml" rel="self"/>
<link href="http://www.bixiaofan.com/"/>
<updated>2018-04-10T02:35:39.000Z</updated>
<id>http://www.bixiaofan.com/</id>
<author>
<name>毕小烦</name>
</author>
<generator uri="http://hexo.io/">Hexo</generator>
<entry>
<title>类与对象-1-改变对象实例的字符串显示</title>
<link href="http://www.bixiaofan.com/2018/04/10/%E7%B1%BB%E4%B8%8E%E5%AF%B9%E8%B1%A1-1-%E6%94%B9%E5%8F%98%E5%AF%B9%E8%B1%A1%E5%AE%9E%E4%BE%8B%E7%9A%84%E5%AD%97%E7%AC%A6%E4%B8%B2%E6%98%BE%E7%A4%BA/"/>
<id>http://www.bixiaofan.com/2018/04/10/类与对象-1-改变对象实例的字符串显示/</id>
<published>2018-04-10T02:35:39.000Z</published>
<updated>2018-04-10T02:35:39.000Z</updated>
<summary type="html">
<h2 id="问题描述"><a href="#问题描述" class="headerlink" title="问题描述"></a>问题描述</h2><p>如果我们想改变对象实例的打印或显示输出,让它们更具可读性,应该怎么做呢?</p>
<h2 id="解决方案"><a
</summary>
<category term="PythonCookbook" scheme="http://www.bixiaofan.com/categories/PythonCookbook/"/>
<category term="python" scheme="http://www.bixiaofan.com/tags/python/"/>
<category term="notes" scheme="http://www.bixiaofan.com/tags/notes/"/>
</entry>
<entry>
<title>数据结构和算法-20-合并多个字典或映射</title>
<link href="http://www.bixiaofan.com/2018/04/09/%E6%95%B0%E6%8D%AE%E7%BB%93%E6%9E%84%E5%92%8C%E7%AE%97%E6%B3%95-20-%E5%90%88%E5%B9%B6%E5%A4%9A%E4%B8%AA%E5%AD%97%E5%85%B8%E6%88%96%E6%98%A0%E5%B0%84/"/>
<id>http://www.bixiaofan.com/2018/04/09/数据结构和算法-20-合并多个字典或映射/</id>
<published>2018-04-09T01:53:27.000Z</published>
<updated>2018-04-09T01:53:27.000Z</updated>
<summary type="html">
<h2 id="问题描述"><a href="#问题描述" class="headerlink" title="问题描述"></a>问题描述</h2><p>我们想把<strong>多个字典或者映射合并</strong>,然后再执行某些操作(如:查找或校验某些 key
</summary>
<category term="PythonCookbook" scheme="http://www.bixiaofan.com/categories/PythonCookbook/"/>
<category term="python" scheme="http://www.bixiaofan.com/tags/python/"/>
<category term="note" scheme="http://www.bixiaofan.com/tags/note/"/>
</entry>
<entry>
<title>数据结构和算法-19-转换并同时计算数据</title>
<link href="http://www.bixiaofan.com/2018/04/09/%E6%95%B0%E6%8D%AE%E7%BB%93%E6%9E%84%E5%92%8C%E7%AE%97%E6%B3%95-19-%E8%BD%AC%E6%8D%A2%E5%B9%B6%E5%90%8C%E6%97%B6%E8%AE%A1%E7%AE%97%E6%95%B0%E6%8D%AE/"/>
<id>http://www.bixiaofan.com/2018/04/09/数据结构和算法-19-转换并同时计算数据/</id>
<published>2018-04-09T01:53:14.000Z</published>
<updated>2018-04-09T01:53:14.000Z</updated>
<summary type="html">
<h2 id="问题描述"><a href="#问题描述" class="headerlink" title="问题描述"></a>问题描述</h2><p>如果我们需要在数据序列上执行聚集函数(比如 <code>sum()</code> , <code>min()</code>
</summary>
<category term="PythonCookbook" scheme="http://www.bixiaofan.com/categories/PythonCookbook/"/>
<category term="python" scheme="http://www.bixiaofan.com/tags/python/"/>
<category term="note" scheme="http://www.bixiaofan.com/tags/note/"/>
</entry>
<entry>
<title>数据结构和算法-18-映射名称到序列元素</title>
<link href="http://www.bixiaofan.com/2018/04/09/%E6%95%B0%E6%8D%AE%E7%BB%93%E6%9E%84%E5%92%8C%E7%AE%97%E6%B3%95-18-%E6%98%A0%E5%B0%84%E5%90%8D%E7%A7%B0%E5%88%B0%E5%BA%8F%E5%88%97%E5%85%83%E7%B4%A0/"/>
<id>http://www.bixiaofan.com/2018/04/09/数据结构和算法-18-映射名称到序列元素/</id>
<published>2018-04-09T01:52:57.000Z</published>
<updated>2018-04-09T01:52:57.000Z</updated>
<summary type="html">
<h2 id="问题描述"><a href="#问题描述" class="headerlink" title="问题描述"></a>问题描述</h2><p>假设我们有一段<strong>通过下标访问列表或元组中元素</strong>的代码,有时这样的代码会难以阅读
</summary>
<category term="PythonCookbook" scheme="http://www.bixiaofan.com/categories/PythonCookbook/"/>
<category term="python" scheme="http://www.bixiaofan.com/tags/python/"/>
<category term="note" scheme="http://www.bixiaofan.com/tags/note/"/>
</entry>
<entry>
<title>数据结构和算法-17-从字典中提取子集</title>
<link href="http://www.bixiaofan.com/2018/04/09/%E6%95%B0%E6%8D%AE%E7%BB%93%E6%9E%84%E5%92%8C%E7%AE%97%E6%B3%95-17-%E4%BB%8E%E5%AD%97%E5%85%B8%E4%B8%AD%E6%8F%90%E5%8F%96%E5%AD%90%E9%9B%86/"/>
<id>http://www.bixiaofan.com/2018/04/09/数据结构和算法-17-从字典中提取子集/</id>
<published>2018-04-09T01:52:35.000Z</published>
<updated>2018-04-09T01:52:35.000Z</updated>
<summary type="html">
<h2 id="问题描述"><a href="#问题描述" class="headerlink" title="问题描述"></a>问题描述</h2><p>我们想利用一个字典的子集构造一个新字典,怎么做呢?</p>
<h2 id="解决方案"><a href="#解决方案"
</summary>
<category term="PythonCookbook" scheme="http://www.bixiaofan.com/categories/PythonCookbook/"/>
<category term="python" scheme="http://www.bixiaofan.com/tags/python/"/>
<category term="note" scheme="http://www.bixiaofan.com/tags/note/"/>
</entry>
<entry>
<title>数据结构和算法-16-过滤序列元素</title>
<link href="http://www.bixiaofan.com/2018/04/09/%E6%95%B0%E6%8D%AE%E7%BB%93%E6%9E%84%E5%92%8C%E7%AE%97%E6%B3%95-16-%E8%BF%87%E6%BB%A4%E5%BA%8F%E5%88%97%E5%85%83%E7%B4%A0/"/>
<id>http://www.bixiaofan.com/2018/04/09/数据结构和算法-16-过滤序列元素/</id>
<published>2018-04-09T01:52:17.000Z</published>
<updated>2018-04-09T01:52:17.000Z</updated>
<summary type="html">
<h2 id="问题描述"><a href="#问题描述" class="headerlink"
</summary>
<category term="PythonCookbook" scheme="http://www.bixiaofan.com/categories/PythonCookbook/"/>
<category term="python" scheme="http://www.bixiaofan.com/tags/python/"/>
<category term="note" scheme="http://www.bixiaofan.com/tags/note/"/>
</entry>
<entry>
<title>数据结构和算法-15-通过某个字段将记录分组</title>
<link href="http://www.bixiaofan.com/2018/04/09/%E6%95%B0%E6%8D%AE%E7%BB%93%E6%9E%84%E5%92%8C%E7%AE%97%E6%B3%95-15-%E9%80%9A%E8%BF%87%E6%9F%90%E4%B8%AA%E5%AD%97%E6%AE%B5%E5%B0%86%E8%AE%B0%E5%BD%95%E5%88%86%E7%BB%84/"/>
<id>http://www.bixiaofan.com/2018/04/09/数据结构和算法-15-通过某个字段将记录分组/</id>
<published>2018-04-09T01:52:03.000Z</published>
<updated>2018-04-09T01:52:03.000Z</updated>
<summary type="html">
<h2 id="问题描述"><a href="#问题描述" class="headerlink" title="问题描述"></a>问题描述</h2><p>有一个字典或者实例的序列,如:</p>
<figure class="highlight
</summary>
<category term="PythonCookbook" scheme="http://www.bixiaofan.com/categories/PythonCookbook/"/>
<category term="python" scheme="http://www.bixiaofan.com/tags/python/"/>
<category term="note" scheme="http://www.bixiaofan.com/tags/note/"/>
</entry>
<entry>
<title>数据结构和算法-14-排序不支持原生比较的对象</title>
<link href="http://www.bixiaofan.com/2018/04/09/%E6%95%B0%E6%8D%AE%E7%BB%93%E6%9E%84%E5%92%8C%E7%AE%97%E6%B3%95-14-%E6%8E%92%E5%BA%8F%E4%B8%8D%E6%94%AF%E6%8C%81%E5%8E%9F%E7%94%9F%E6%AF%94%E8%BE%83%E7%9A%84%E5%AF%B9%E8%B1%A1/"/>
<id>http://www.bixiaofan.com/2018/04/09/数据结构和算法-14-排序不支持原生比较的对象/</id>
<published>2018-04-09T01:51:48.000Z</published>
<updated>2018-04-09T01:51:48.000Z</updated>
<summary type="html">
<h2 id="问题描述"><a href="#问题描述" class="headerlink" title="问题描述"></a>问题描述</h2><p>如果我们想排序类型相同的对象,但是他们不支持原生的比较操作,怎么办呢?</p>
<h2 id="解决方案"><a
</summary>
<category term="PythonCookbook" scheme="http://www.bixiaofan.com/categories/PythonCookbook/"/>
<category term="python" scheme="http://www.bixiaofan.com/tags/python/"/>
<category term="note" scheme="http://www.bixiaofan.com/tags/note/"/>
</entry>
<entry>
<title>数据结构和算法-13-通过某个关键字排序一个字典列表</title>
<link href="http://www.bixiaofan.com/2018/04/09/%E6%95%B0%E6%8D%AE%E7%BB%93%E6%9E%84%E5%92%8C%E7%AE%97%E6%B3%95-13-%E9%80%9A%E8%BF%87%E6%9F%90%E4%B8%AA%E5%85%B3%E9%94%AE%E5%AD%97%E6%8E%92%E5%BA%8F%E4%B8%80%E4%B8%AA%E5%AD%97%E5%85%B8%E5%88%97%E8%A1%A8/"/>
<id>http://www.bixiaofan.com/2018/04/09/数据结构和算法-13-通过某个关键字排序一个字典列表/</id>
<published>2018-04-09T01:51:29.000Z</published>
<updated>2018-04-09T01:51:29.000Z</updated>
<summary type="html">
<h2 id="问题描述"><a href="#问题描述" class="headerlink" title="问题描述"></a>问题描述</h2><p>如果我们有一个字典列表,如何根据<strong>某个或某几个字典字段</strong>来排序这个列表呢?</p>
<h2
</summary>
<category term="PythonCookbook" scheme="http://www.bixiaofan.com/categories/PythonCookbook/"/>
<category term="python" scheme="http://www.bixiaofan.com/tags/python/"/>
<category term="note" scheme="http://www.bixiaofan.com/tags/note/"/>
</entry>
<entry>
<title>数据结构和算法-12-序列中出现次数最多的元素</title>
<link href="http://www.bixiaofan.com/2018/04/09/%E6%95%B0%E6%8D%AE%E7%BB%93%E6%9E%84%E5%92%8C%E7%AE%97%E6%B3%95-12-%E5%BA%8F%E5%88%97%E4%B8%AD%E5%87%BA%E7%8E%B0%E6%AC%A1%E6%95%B0%E6%9C%80%E5%A4%9A%E7%9A%84%E5%85%83%E7%B4%A0/"/>
<id>http://www.bixiaofan.com/2018/04/09/数据结构和算法-12-序列中出现次数最多的元素/</id>
<published>2018-04-09T01:51:05.000Z</published>
<updated>2018-04-09T01:51:05.000Z</updated>
<summary type="html">
<h2 id="问题描述"><a href="#问题描述" class="headerlink" title="问题描述"></a>问题描述</h2><p>怎样找出一个序列中<strong>出现次数最多</strong>的元素呢?</p>
<h2 id="解决方案"><a
</summary>
<category term="PythonCookbook" scheme="http://www.bixiaofan.com/categories/PythonCookbook/"/>
<category term="python" scheme="http://www.bixiaofan.com/tags/python/"/>
<category term="note" scheme="http://www.bixiaofan.com/tags/note/"/>
</entry>
<entry>
<title>数据结构和算法-11-给切片命名</title>
<link href="http://www.bixiaofan.com/2018/04/09/%E6%95%B0%E6%8D%AE%E7%BB%93%E6%9E%84%E5%92%8C%E7%AE%97%E6%B3%95-11-%E7%BB%99%E5%88%87%E7%89%87%E5%91%BD%E5%90%8D/"/>
<id>http://www.bixiaofan.com/2018/04/09/数据结构和算法-11-给切片命名/</id>
<published>2018-04-09T01:50:42.000Z</published>
<updated>2018-04-09T01:50:42.000Z</updated>
<summary type="html">
<h2 id="问题描述"><a href="#问题描述" class="headerlink" title="问题描述"></a>问题描述</h2><p>假如我们的程序已经出现了一大堆已无法直视的硬编码切片下标,应该如何清理呢?</p>
<h2 id="解决方案"><a
</summary>
<category term="PythonCookbook" scheme="http://www.bixiaofan.com/categories/PythonCookbook/"/>
<category term="python" scheme="http://www.bixiaofan.com/tags/python/"/>
<category term="note" scheme="http://www.bixiaofan.com/tags/note/"/>
</entry>
<entry>
<title>数据结构和算法-10-删除序列中重复的元素并保持顺序不变</title>
<link href="http://www.bixiaofan.com/2018/04/09/%E6%95%B0%E6%8D%AE%E7%BB%93%E6%9E%84%E5%92%8C%E7%AE%97%E6%B3%95-10-%E5%88%A0%E9%99%A4%E5%BA%8F%E5%88%97%E4%B8%AD%E9%87%8D%E5%A4%8D%E7%9A%84%E5%85%83%E7%B4%A0%E5%B9%B6%E4%BF%9D%E6%8C%81%E9%A1%BA%E5%BA%8F%E4%B8%8D%E5%8F%98/"/>
<id>http://www.bixiaofan.com/2018/04/09/数据结构和算法-10-删除序列中重复的元素并保持顺序不变/</id>
<published>2018-04-09T01:49:50.000Z</published>
<updated>2018-04-09T01:49:50.000Z</updated>
<summary type="html">
<h2 id="问题描述"><a href="#问题描述" class="headerlink" title="问题描述"></a>问题描述</h2><p>怎样在一个序列中删除重复的元素并保持元素顺序不变?</p>
<h2 id="解决方案"><a href="#解决方案"
</summary>
<category term="PythonCookbook" scheme="http://www.bixiaofan.com/categories/PythonCookbook/"/>
<category term="python" scheme="http://www.bixiaofan.com/tags/python/"/>
<category term="note" scheme="http://www.bixiaofan.com/tags/note/"/>
</entry>
<entry>
<title>数据结构和算法-9-查找两个字典的相同点</title>
<link href="http://www.bixiaofan.com/2018/04/09/%E6%95%B0%E6%8D%AE%E7%BB%93%E6%9E%84%E5%92%8C%E7%AE%97%E6%B3%95-9-%E6%9F%A5%E6%89%BE%E4%B8%A4%E4%B8%AA%E5%AD%97%E5%85%B8%E7%9A%84%E7%9B%B8%E5%90%8C%E7%82%B9/"/>
<id>http://www.bixiaofan.com/2018/04/09/数据结构和算法-9-查找两个字典的相同点/</id>
<published>2018-04-09T01:49:09.000Z</published>
<updated>2018-04-09T01:49:09.000Z</updated>
<summary type="html">
<h2 id="问题描述"><a href="#问题描述" class="headerlink" title="问题描述"></a>问题描述</h2><p>怎样在两个字典中寻找相同点呢?(比如相同的键或相同的值)</p>
<h2 id="解决方案"><a
</summary>
<category term="PythonCookbook" scheme="http://www.bixiaofan.com/categories/PythonCookbook/"/>
<category term="python" scheme="http://www.bixiaofan.com/tags/python/"/>
<category term="note" scheme="http://www.bixiaofan.com/tags/note/"/>
</entry>
<entry>
<title>数据结构和算法-8-字典的运算</title>
<link href="http://www.bixiaofan.com/2018/04/07/%E6%95%B0%E6%8D%AE%E7%BB%93%E6%9E%84%E5%92%8C%E7%AE%97%E6%B3%95-8-%E5%AD%97%E5%85%B8%E7%9A%84%E8%BF%90%E7%AE%97/"/>
<id>http://www.bixiaofan.com/2018/04/07/数据结构和算法-8-字典的运算/</id>
<published>2018-04-07T02:29:26.000Z</published>
<updated>2018-04-07T02:29:26.000Z</updated>
<summary type="html">
<h2 id="问题描述"><a href="#问题描述" class="headerlink" title="问题描述"></a>问题描述</h2><figure class="highlight python"><table><tr><td
</summary>
<category term="PythonCookbook" scheme="http://www.bixiaofan.com/categories/PythonCookbook/"/>
<category term="python" scheme="http://www.bixiaofan.com/tags/python/"/>
<category term="note" scheme="http://www.bixiaofan.com/tags/note/"/>
</entry>
<entry>
<title>数据结构和算法-7-字典排序</title>
<link href="http://www.bixiaofan.com/2018/04/07/%E6%95%B0%E6%8D%AE%E7%BB%93%E6%9E%84%E5%92%8C%E7%AE%97%E6%B3%95-7-%E5%AD%97%E5%85%B8%E6%8E%92%E5%BA%8F/"/>
<id>http://www.bixiaofan.com/2018/04/07/数据结构和算法-7-字典排序/</id>
<published>2018-04-07T01:41:15.000Z</published>
<updated>2018-04-07T01:41:15.000Z</updated>
<summary type="html">
<h2 id="问题描述"><a href="#问题描述" class="headerlink" title="问题描述"></a>问题描述</h2><p>假如我们想创建一个字典,并且在迭代或序列化这个字典的时候能够控制元素的顺序。如何实现呢?</p>
<h2
</summary>
<category term="PythonCookbook" scheme="http://www.bixiaofan.com/categories/PythonCookbook/"/>
<category term="python" scheme="http://www.bixiaofan.com/tags/python/"/>
<category term="note" scheme="http://www.bixiaofan.com/tags/note/"/>
</entry>
<entry>
<title>数据结构和算法-6-字典中的键映射多个值</title>
<link href="http://www.bixiaofan.com/2018/04/04/%E6%95%B0%E6%8D%AE%E7%BB%93%E6%9E%84%E5%92%8C%E7%AE%97%E6%B3%95-6-%E5%AD%97%E5%85%B8%E4%B8%AD%E7%9A%84%E9%94%AE%E6%98%A0%E5%B0%84%E5%A4%9A%E4%B8%AA%E5%80%BC/"/>
<id>http://www.bixiaofan.com/2018/04/04/数据结构和算法-6-字典中的键映射多个值/</id>
<published>2018-04-04T01:37:52.000Z</published>
<updated>2018-04-04T01:37:52.000Z</updated>
<summary type="html">
<h2 id="问题描述"><a href="#问题描述" class="headerlink" title="问题描述"></a>问题描述</h2><p>怎样实现<strong>一个键对应多个值</strong>的字典(也叫
</summary>
<category term="PythonCookbook" scheme="http://www.bixiaofan.com/categories/PythonCookbook/"/>
<category term="python" scheme="http://www.bixiaofan.com/tags/python/"/>
<category term="note" scheme="http://www.bixiaofan.com/tags/note/"/>
</entry>
<entry>
<title>「数据结构和算法」5-实现一个优先级队列</title>
<link href="http://www.bixiaofan.com/2018/04/03/%E6%95%B0%E6%8D%AE%E7%BB%93%E6%9E%84%E5%92%8C%E7%AE%97%E6%B3%95-5-%E5%AE%9E%E7%8E%B0%E4%B8%80%E4%B8%AA%E4%BC%98%E5%85%88%E7%BA%A7%E9%98%9F%E5%88%97/"/>
<id>http://www.bixiaofan.com/2018/04/03/数据结构和算法-5-实现一个优先级队列/</id>
<published>2018-04-03T04:03:06.000Z</published>
<updated>2018-04-03T04:03:06.000Z</updated>
<summary type="html">
<h2 id="问题描述"><a href="#问题描述" class="headerlink" title="问题描述"></a>问题描述</h2><p>怎样实现一个按优先级排序的队列? 并且在这个队列上面每次 pop
</summary>
<category term="PythonCookbook" scheme="http://www.bixiaofan.com/categories/PythonCookbook/"/>
<category term="python" scheme="http://www.bixiaofan.com/tags/python/"/>
<category term="note" scheme="http://www.bixiaofan.com/tags/note/"/>
</entry>
<entry>
<title>数据结构和算法-4-查找最大或最小的N个元素</title>
<link href="http://www.bixiaofan.com/2018/03/13/%E6%95%B0%E6%8D%AE%E7%BB%93%E6%9E%84%E5%92%8C%E7%AE%97%E6%B3%95-4-%E6%9F%A5%E6%89%BE%E6%9C%80%E5%A4%A7%E6%88%96%E6%9C%80%E5%B0%8F%E7%9A%84%20N%20%E4%B8%AA%E5%85%83%E7%B4%A0/"/>
<id>http://www.bixiaofan.com/2018/03/13/数据结构和算法-4-查找最大或最小的 N 个元素/</id>
<published>2018-03-13T13:02:30.000Z</published>
<updated>2018-03-13T13:02:30.000Z</updated>
<summary type="html">
<h2 id="问题描述"><a href="#问题描述" class="headerlink" title="问题描述"></a>问题描述</h2><p>怎样从一个集合中获得最大或者最小的 N 个元素列表?</p>
<h2 id="解决方案"><a href="#解决方案"
</summary>
<category term="PythonCookbook" scheme="http://www.bixiaofan.com/categories/PythonCookbook/"/>
<category term="python" scheme="http://www.bixiaofan.com/tags/python/"/>
<category term="notes" scheme="http://www.bixiaofan.com/tags/notes/"/>
</entry>
<entry>
<title>数据结构和算法-3.保留最后加入的固定个数的元素</title>
<link href="http://www.bixiaofan.com/2018/03/08/%E6%95%B0%E6%8D%AE%E7%BB%93%E6%9E%84%E5%92%8C%E7%AE%97%E6%B3%95-3-%E4%BF%9D%E7%95%99%E6%9C%80%E5%90%8E%E5%8A%A0%E5%85%A5%E7%9A%84%E5%9B%BA%E5%AE%9A%E4%B8%AA%E6%95%B0%E7%9A%84%E5%85%83%E7%B4%A0/"/>
<id>http://www.bixiaofan.com/2018/03/08/数据结构和算法-3-保留最后加入的固定个数的元素/</id>
<published>2018-03-08T13:02:30.000Z</published>
<updated>2018-03-08T13:02:30.000Z</updated>
<summary type="html">
<h2 id="问题描述"><a href="#问题描述" class="headerlink" title="问题描述"></a>问题描述</h2><p>在迭代操作或者其他操作的时候,怎样只保留最后加入的固定个数的元素?</p>
<h2 id="解决方案"><a
</summary>
<category term="PythonCookbook" scheme="http://www.bixiaofan.com/categories/PythonCookbook/"/>
<category term="python" scheme="http://www.bixiaofan.com/tags/python/"/>
<category term="notes" scheme="http://www.bixiaofan.com/tags/notes/"/>
</entry>
<entry>
<title>数据结构和算法-2.解压可迭代对象赋值给多个变量</title>
<link href="http://www.bixiaofan.com/2018/03/07/%E6%95%B0%E6%8D%AE%E7%BB%93%E6%9E%84%E5%92%8C%E7%AE%97%E6%B3%95-2-%E8%A7%A3%E5%8E%8B%E5%8F%AF%E8%BF%AD%E4%BB%A3%E5%AF%B9%E8%B1%A1%E8%B5%8B%E5%80%BC%E7%BB%99%E5%A4%9A%E4%B8%AA%E5%8F%98%E9%87%8F/"/>
<id>http://www.bixiaofan.com/2018/03/07/数据结构和算法-2-解压可迭代对象赋值给多个变量/</id>
<published>2018-03-07T13:02:30.000Z</published>
<updated>2018-03-07T13:02:30.000Z</updated>
<summary type="html">
<h2 id="问题描述"><a href="#问题描述" class="headerlink"
</summary>
<category term="PythonCookbook" scheme="http://www.bixiaofan.com/categories/PythonCookbook/"/>
<category term="python" scheme="http://www.bixiaofan.com/tags/python/"/>
<category term="notes" scheme="http://www.bixiaofan.com/tags/notes/"/>
</entry>
</feed>