【问题标题】:Can I make flutter code can run python program?我可以让flutter代码运行python程序吗?
【发布时间】:2020-09-30 10:33:49
【问题描述】:

当一个名为'main.py'的python程序运行时,它会将一些数据写入number.txt文件。 我会在 Flutter 中导入该 number.txt 文件并使用其中的数据。

我想要的是让我的颤振代码可以运行 python 程序。 我想过通过cmd运行python程序,但是flutter中的print函数看起来不太合适。 那我该怎么做呢?

感谢您的阅读,我会等待您的建议!

【问题讨论】:

    标签: python android ios flutter dart


    【解决方案1】:

    尝试检查这个插件。也许它应该适合你。

    https://pub.dev/packages/starflut

    【讨论】:

    最近更新 更多