選択できるのは25トピックまでです。
トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
|
|
|
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("F:\\javaPythonFile.py");
|
|
|
|
}
|
|
|
|
}
|