Calling Python in Java?

前端 未结 11 1365
北荒
北荒 2020-11-22 13:04

I am wondering if it is possible to call python functions from java code using jython, or is it only for calling java code from python?

11条回答
  •  一生所求
    2020-11-22 13:19

    Several of the answers mention that you can use JNI or JNA to access cpython but I would not recommend starting from scratch because there are already open source libraries for accessing cpython from java. For example:

    • JEP
    • JPY

提交回复
热议问题