您最多选择25个主题
主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
16 行
384 B
16 行
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");
|
||
|
}
|
||
|
}
|