标签:localtime str url %s port 使用 run ret div
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()
标签:localtime str url %s port 使用 run ret div
原文地址:https://www.cnblogs.com/yangxiufeng/p/10659052.html