WSGI 是Web Services Gateway Interface的缩写. 如果想深入了解,可以阅读 PEP
333 文档,包含有任何你想要的:)community errata, .这篇文章将手把手教你写一个简单的WSGI例子。
注意:我用的Python版本是.2.7.x.
最经典,最简答的WSGI样当属 Hello
World app.
咱们将要用到 v...
分类:
其他好文 时间:
2014-07-22 23:03:53
阅读次数:
407
原pom.xml配置文件: 4.0.0 com.my.helloworld hello-world
1.0-SNAPSHOT Maven Hello World Project junit jun...
分类:
其他好文 时间:
2014-07-22 22:59:36
阅读次数:
374
>>> for i in range(0,10):if i >
10:break;else:print "hello world";输出:hello world>>> for i in
range(0,10):if i > 5:break;else:print "hello world";没有输出-...
分类:
编程语言 时间:
2014-05-01 21:13:53
阅读次数:
368
赋值语句
注释,用(--)来表示
定义,lua中没有定义(申明数据类型),它是通过赋值来确定其数据类型的。
赋值,是改变一个变量的值和改变表域的最基本的方法。 a = "hello" .. "world"
Lua可以对多个变量同时赋值,变量列表和值列表的各个元素用逗号分开,赋值语句右边的值会依次赋给左边的变量。a, b = 10, 2*x a=10; b=2*x
遇到赋值语句...
分类:
其他好文 时间:
2014-05-01 18:16:03
阅读次数:
337
问题描述:
在sublime text里写最简单的python语句hello world:
print ('hello world')
回车build后出错如下图:
解决办法:
这个问题的原因说起来很幼稚,就是因为没有保存文件。所...
分类:
其他好文 时间:
2014-04-30 22:16:38
阅读次数:
344
I am honored to be with you today at your commencement from one of the finest universities in the world. I never graduated from college. Truth be told, this is the closest I've ever gotten to a colleg...
分类:
其他好文 时间:
2014-04-29 13:46:22
阅读次数:
337
1D people lived in a 1D country. Everything in the country was one-dimensional, and everything was simple and clear: just one axis and two directions — forward and backward. Even a 1D world has proble...
分类:
其他好文 时间:
2014-04-29 13:44:22
阅读次数:
284
Problem Description
In the Wide Web World, Which web server was popular in web site? Apache, nginx, lighttpd? Baidu.com use Apache, and many web sites like 163.com use nginx. Why? Its configuration i...
分类:
其他好文 时间:
2014-04-29 13:24:20
阅读次数:
355
本系列主要参考《Unity Shaders and Effects Cookbook》一书(感谢原书作者),同时会加上一点个人理解或拓展。
这里是本书所有的插图。这里是本书所需的代码和资源(当然你也可以从官网下载)。
========================================== 分割线 ==================================...
分类:
其他好文 时间:
2014-04-29 13:17:21
阅读次数:
376