从web.py的API文档中:
**模块web.httpserver** 函数runimple(func,server_address =('0.0.0.0',8080))
运行承载WSGI应用程序func的CherryPy WSGI服务器。目录static /是静态托管的。
范例程式码
import webclass MyApplication(web.application): def run(self, port=8080, *middleware): func = self.wsgifunc(*middleware) return web.httpserver.runsimple(func, ('0.0.0.0', port))if __name__ == "__main__": app = MyApplication(urls, globals()) app.run(port=8888)


