Web.py

来自开放百科 - 灰狐
(版本间的差异)
跳转到: 导航, 搜索
第1行: 第1行:
 
http://webpy.org/
 
http://webpy.org/
  
 +
==Install==
 +
wget http://webpy.org/web.py-0.2.tar.gz
 +
python setup.py install // install to
 +
touch code.py
 +
import web
 +
urls = (
 +
  '/', 'index'
 +
)
 +
class index:
 +
  def GET(self):
 +
    print "hello, webpy"
 +
 +
if __name__ == "__main__": web.run(urls, globals())
 +
 +
python code.py
 +
http://localhost:8080/ :)
 
[[Category:Web application frameworks]]
 
[[Category:Web application frameworks]]

2007年2月6日 (二) 18:58的版本

http://webpy.org/

Install

wget http://webpy.org/web.py-0.2.tar.gz
python setup.py install // install to 
touch code.py
import web
urls = (
  '/', 'index'
)
class index:
 def GET(self):
   print "hello, webpy"

if __name__ == "__main__": web.run(urls, globals())

python code.py
http://localhost:8080/ :)
分享您的观点
个人工具
名字空间

变换
操作
导航
工具箱