1 Star 0 Fork 1

jiangpengjuj/ant-learn-python-concurrent

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
12. gevent_flask.py 308 Bytes
一键复制 编辑 原始数据 按行查看 历史
cztps2 提交于 2021-04-20 22:53 +08:00 . 12
from gevent import monkey
monkey.patch_all()
from flask import Flask
from gevent import pywsgi
app = Flask(__name__)
@app.route("/")
def index():
return "success"
if __name__ == "__main__":
# app.run()
server = pywsgi.WSGIServer(
("0.0.0.0", 8888), app)
server.serve_forever()
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/jiangpengjuj/ant-learn-python-concurrent.git
git@gitee.com:jiangpengjuj/ant-learn-python-concurrent.git
jiangpengjuj
ant-learn-python-concurrent
ant-learn-python-concurrent
main

搜索帮助