You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 line
384 B
16 line
384 B
3 年之前
|
import org.python.util.PythonInterpreter;
|
||
|
|
||
|
/**
|
||
|
* @author yanpeng
|
||
|
* @version 1.0
|
||
|
* @desc TODO
|
||
|
* @company 北京中经网软件有限公司
|
||
|
* @date 2021/7/16 17:43
|
||
|
*/
|
||
|
public class JavaRunPythonFile {
|
||
|
public static void main(String[] args) {
|
||
|
PythonInterpreter interpreter = new PythonInterpreter();
|
||
|
interpreter.execfile("classpath:/javaPythonFile.py");
|
||
|
}
|
||
|
}
|