摘要:
1039_字符消除题目链接: http://hihocoder.com/problemset/problem/1039很久没刷题了赶紧刷点水题以免各种面试被bs题目大意:中文题目直接看题就懂思路:一时间也没有什么很好的感觉速度很快的思路,只好老老实实按照题目意思一步步的进行,还好能够AC.首先要考虑... 阅读全文
摘要:
Priority Queues9.1 ADT9.2 implementing a priority queue用无序的list来实现用有序的列表来实现优先队列9.3 heapsheap数据结构使用堆来实现优先队列基于数组实现的完全二叉树使用最小优先队列来进行排序adaptable priority ... 阅读全文
摘要:
8 Trees8.1 general treestree ADT计算depth和height8.2 二叉树决策树二叉树 ADT8.3 Implementing Trees数组表示得二叉树8.4 树的遍历算法宽度优先遍历中序遍历二叉搜索树python实现树遍历8 Trees8.1 general tr... 阅读全文
摘要:
werkzeug构建'url shortly'应用0: basic wsgi1: creating the folders2: the base structure3: 环境4: routing5: first view6: redirect view7: detail viewwerkzeug构建... 阅读全文
摘要:
要使我们的对象支持with语句,必须为它实现 __enter__和__exit__方法。先看一个例子:from socket import socket, AF_INET, type=SOCK_STREAMclass lazyConnection: def __init__(self, add... 阅读全文
摘要:
hello world WSGI appWSGI应用WSGI环境用environ参数创建Request请求Responseshello world WSGI appdef application(environ, start_response): start_response( ... 阅读全文
摘要:
上传文件保存上传的文件上传文件import weburls = ( '/upload', 'Upload',)class Upload: def GET(self): return """ ... 阅读全文
摘要:
7 Linked Lists7.1 singly linked list7.2 circular linked lists7.4 the positional list ADT7.5 sorting a positional list7.6 链表与数组实现的序列比较7 Linked Lists7.1... 阅读全文
摘要:
5 Array-Based Sequence5.2.1 referential arrays5.2.2 compact arrays in pythonarray.array5.3 dynamic arrays and amortization5.3.1 implementing a dynamic... 阅读全文
摘要:
14 Macrostoolkit: ppmx14.4 defining a macro14.5 macros as syntactic extensions14.6 backquote14.7 splicing with backquote设计宏14.8 complier14.9 compilati... 阅读全文