我想用Python后端连接Flutter。一些教程,如ML models using flask或online tutorials,建议使用FLASK的REST-API来连接Flutter和Python。通常,使用FLASK创建一个localhost,flutter应用程序通过http包获取信息。我需要创建一个flutter-<
我有两个文件,假设是file1.py和file2.py。file1.py from flask_socketio import SocketIO, emit from __main__ import socketio, app def emit_from_file1():
emit('resp','emitted from file1') file2.py: from flask_restfulimport Resou