摘要:
python | 同时使用flask和websockets 一个非常简单的解决方案 代码如下: ''' author: Mz1 一个脚本启动的多功能聊天室 架构: 在新线程中启动flask 在主线程中启动websockets ''' # index.html index_html = ''' <!D 阅读全文
posted @ 2022-10-10 11:06
Mz1
阅读(914)
评论(0)
推荐(0)
摘要:
python | flask 捕获任意路由 参考文章:https://www.codenong.com/15117416/ 方式如下: @app.route('/', defaults={'path': ''}) @app.route('/<path:path>') def get_dir(path 阅读全文
posted @ 2022-10-10 10:37
Mz1
阅读(81)
评论(0)
推荐(0)