from wsgiref.simple_server import make_server
# 导入我们自己编写的application函数:
from wsgi_hello import application

# 创建一个服务器，IP地址为空，端口是8000，处理函数是application:
httpd = make_server('',9996,application)
print('starting 9996')

# 开始监听http请求
httpd.serve_forever()

