Calling Python in Java?

前端 未结 11 1367
北荒
北荒 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:30

    Here a library that lets you write your python scripts once and decide which integration method (Jython, CPython/PyPy via Jep and Py4j) to use at runtime:

    https://github.com/subes/invesdwin-context-python

    Since each method has its own benefits/drawbacks as explained in the link.

提交回复
热议问题