hello world!
http://webpy.org/
Get Started
web.py 0.37 is the latest released version of web.py. You can install it by running:
sudo easy_install web.py
Or to get the latest development version from git:
git clone git://github.com/webpy/webpy.git
ln -s `pwd`/webpy/web .
vim files :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()
github.com/crosbymichael/.dotf
which is best for webpy!!
type http://locahost:8080 in your browser you will find
Hello World!

本文介绍了一个简单的web.py应用实例,展示了如何使用web.py框架搭建一个基本的Web应用,并通过一个‘Hello, World!’的例子来说明其基本用法。
409

被折叠的 条评论
为什么被折叠?



