- 428 名前:デフォルトの名無しさん [2017/08/10(木) 20:43:31.44 ID:bCDgNNGM.net]
- java.util.Properties properties = new Properties(); properties.put("python.console.encoding", "UTF-8");
org.python.util.PythonInterpreter.initialize(System.getProperties(), properties, new String[0]); try(org.python.util.PythonInterpreter ip = new PythonInterpreter()) { ip.exec("str = input()"); ip.exec("print(str[::-1])"); }
|

|