web.py模块使用

Posted 杨秀峰blog

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了web.py模块使用相关的知识,希望对你有一定的参考价值。

web.py模块

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()

  

以上是关于web.py模块使用的主要内容,如果未能解决你的问题,请参考以下文章