java和python可以在一个项目中同时使用么-Java和Python可以在同一个应用程序中共存吗?...

1586010002-jmsa.png

I need to have a Java instance fetching data directly from the Python's instance datastore. I don't know if that's possible at all. Is the datastore transparent/unique, or each instance (if they can indeed coexist) has its separate datastore?

Suming it up: how can a Java app fetch data from the datastore of a Python app, and vice-versa?

解决方案

You could use jython. It's a python implementation written in java. You can call java functions/classes from python that way. That would allow you to run python code in the java instance.

I don't know of anything to do the opposite (run java inside a python process).

评论将由博主筛选后显示,对所有人可见 | 还能输入1000个字符 “速评一下”
©️2020 CSDN 皮肤主题: 1024 设计师:上身试试 返回首页