hanchenglong001
hanchenglong001
I started a Flask program in Fleet and used the Fleet UI to access it. But the Flask program is HTTP. I tried using the following method to start Flask...
import time import flet as ft import threading from flask import Flask,send_file app = Flask(__name__) @app.route('/') def hello_world(): return send_file("assets/test.html") def run_flask_in_thread(): print("Starting Flask in thread...") app.run(host='0.0.0.0',port=5448) def main(page: ft.Page):...

> 用python写安卓? 是的
> 请使用英文和正确的模板提交问题。 Link questions using English and correct templates https://github.com/flet-dev/flet/issues/3128#issue-2268705349
强烈需要。我目前自己实现了个接口 把python脚本通过请求体传过去。然后执行完在传回来。