繁体   English   中英

如何在 Flutter 应用程序中使用 python 代码?

[英]How to use python code with Flutter application?

I wanna to make a chatbot app with fluter, so i will use flutter only to create the user interface, and i wanna to interact my flutter app with python, so i will receive the question from flutter app and i will send it to python function , 这个 function 应该返回答案,在 flutter 中我会将它显示到屏幕上。 提示:1-我使用 flutter 制作了 UI。 2-我创建了 python function “它使用神经网络”。 3-我只想使用 python 作为 function,我会将问题传递给它,它应该返回答案。 ...所以我现在需要知道如何在 flutter 应用程序中调用我的 python function ??? 在此处输入图像描述

The simplest way to run python code in flutter is to use chaquopy package, you just need to do configuration and put your code inside Chaquopy.executeCode() method, the best thing about this package is its simplicity and allows users to integrate even python packages .

试试starflut package

It supports flutter to interact with other scripting languages such as python, java, ruby, golang, rust, etc. It is easy to use, supports android and ios platform.

访问此链接,该文章可能对您有所帮助

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM