Discuss / Python / WSGI 处理函数

WSGI 处理函数

Topic source

lzzc的微博

#1 Created at ... [Delete] [Delete and Lock User]

浏览器打开过http://localhost:8000/,并显示出了Hello,web。为什么再次改变return里的,web,再次进入http://localhost:8000/,显示内容不变呢?

def application(environ, start_response):
    start_response('200 OK', [('Content-Type', 'text/html')])
    return [b'<h1>Hello, web!</h1>']

在路上

#2 Created at ... [Delete] [Delete and Lock User]

需要重新运行server才行


  • 1

Reply