所以我把这个文件放在一个特定的目录下。你知道吗
我正在尝试访问我的文件:
public static void main(String[] args) {
try {
PythonInterpreter interpreter = new PythonInterpreter();
interpreter.execfile("C:/Users/schueler/Desktop/TestForPhyton/testPython.py");
} catch (Exception ex) {
System.out.println(""+ex);
}
}
我得到这个错误:
IOError: (2, 'File not found - C:\\Users\\schueler\\Desktop\\TestForPhyton\\testPython.py (Das System kann die angegebene Datei nicht finden)')
拼写错误。你知道吗
你知道吗测试Python.py==>;测试Pyhton.py(在目录中)
有自动完成工具,ide可以避免这些错误
相关问题 更多 >
编程相关推荐