07 2015 档案

摘要:werkzeug构建'url shortly'应用0: basic wsgi1: creating the folders2: the base structure3: 环境4: routing5: first view6: redirect view7: detail viewwerkzeug构建... 阅读全文
posted @ 2015-07-31 16:08 Jolin123 阅读(279) 评论(0) 推荐(0)
摘要:要使我们的对象支持with语句,必须为它实现 __enter__和__exit__方法。先看一个例子:from socket import socket, AF_INET, type=SOCK_STREAMclass lazyConnection: def __init__(self, add... 阅读全文
posted @ 2015-07-30 15:51 Jolin123 阅读(266) 评论(0) 推荐(0)
摘要:hello world WSGI appWSGI应用WSGI环境用environ参数创建Request请求Responseshello world WSGI appdef application(environ, start_response): start_response( ... 阅读全文
posted @ 2015-07-30 15:06 Jolin123 阅读(232) 评论(0) 推荐(0)
摘要:上传文件保存上传的文件上传文件import weburls = ( '/upload', 'Upload',)class Upload: def GET(self): return """ ... 阅读全文
posted @ 2015-07-28 18:00 Jolin123 阅读(2361) 评论(0) 推荐(0)
摘要: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... 阅读全文
posted @ 2015-07-11 20:52 Jolin123 阅读(1142) 评论(0) 推荐(0)
摘要: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... 阅读全文
posted @ 2015-07-09 10:57 Jolin123 阅读(1528) 评论(1) 推荐(0)