Python框架 web.py
fmms
13年前
<p><a title="Home" href="/misc/goto?guid=4958186852910008776"><img alt="Python框架 web.py" src="https://simg.open-open.com/show/7e0c829fafb39a8c0ba823d6665047c3.gif" width="154" height="66" /></a><br /> web.py是一个小巧灵活的Python框架,它简单而且功能强大。</p> <p>示例代码:</p> <pre class="brush:python; toolbar: true; auto-links: false;">import web urls = ( '/(.*)', 'hello' ) app = web.application(urls, globals()) class hello: def GET(self, name): if not name: name = 'World' return 'Hello, ' + name + '!' if __name__ == "__main__": app.run()</pre>安装方法:sudo easy_install web.py <br /> <br /> <p><strong>项目主页:</strong><a href="http://www.open-open.com/lib/view/home/1323679955093" target="_blank">http://www.open-open.com/lib/view/home/1323679955093</a></p> <p></p>