python web使用

# pip install web.py


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()
上一篇:linux下压力测试工具http_load


下一篇:Django之rest_framework