== 题目要求 == 写一个Hello,world程序,带有环境安装说明 == 框架说明 == web.py (http://webpy.org) == 安装 == === 环境要求 === * python 2.5, python 2.6 * setuptools 0.6c9 === 安装 === {{{ easy_install web.py }}} == 步骤 == 在命令行下操作 === 1. 创建Project1项目 === {{{ mkdir project1 }}} === 2. 创建Hello App,编辑 project1/hello.py === {{{ #!python import web urls = ('/', 'hello') class hello: def GET(self): return "Hello World" app = web.application(urls, globals()) if __name__ == '__main__': app.run() }}} === 3. 结束 === == 测试 == {{{ cd project1 python hello.py }}} 访问 http://localhost:8080 即可。