web.py模块使用

web.py模块python

import time
import web

urls=("/",'hello')
class hello():
    def GET(self):
        return (time.strftime("%Y-%m-%d %H:%M:%S", time.localtime()))
if __name__ =="__main__":
    app=web.application(urls,globals())
    app.run()
相关文章
相关标签/搜索