首页 > 其他 > 详细

应用程序示例

时间:2019-03-10 10:24:03      阅读:92      评论:0      收藏:0      [点我收藏+]
import time

def application(environ, start_response):
    status = ‘200 OK‘
    response_headers = [(‘Content-Type‘, ‘text/html‘)]
    start_response(status, response_headers)
    return str(environ) + ‘==Hello world from a simple WSGI application!--->%s\n‘ % time.ctime()

应用程序示例

原文:https://www.cnblogs.com/jyue/p/10504204.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!