应用程序示例

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()
posted @ 2019-03-10 09:27  Jyue  阅读(157)  评论(0)    收藏  举报