Django中的中间件机制
ClipBoardjs.min.js

使用Python编写的生命游戏

1
2
3
4
5
6
7
8
9
10
#!/usr/bin/python
#encoding=utf-8
'''
Conway 's game of life , python version using Tkinter
details of this game:
http://en.wikipedia.org/wiki/Conway%27s_Game_of_Life
author : dawn110110@gmail.com
start date : 2012-Jan-18
'''
from Tkinter import *
阅读更多
Python面向对象基础
WSGI简介

WSGI简介

原文链接

WSGI是什么

WSGI的全称是Web Server Gateway Interface,翻译过来就是Web服务器网关接口。具体的来说,*
WSGI是一个规范,定义了Web服务器如何与Python应用程序进行交互,使得使用Python写的Web应用程序可以和Web服务器对接起来*
。WSGI一开始是在PEP-0333
中定义的,最新版本是在Python的PEP-3333定义的。

对于初学者来说,上面那段就是废话,说了跟没说一样。本文的主要内容就是说清楚,WSGI到底是如何工作的。

阅读更多