依赖:
<dependency>
<groupId>net.sf.py4j</groupId>
<artifactId>py4j</artifactId>
<version>0.10.8.1</version>
</dependency>
public class ExampleClientApplication {
public static void main(String[] args) {
getClient();
}
public static void getClient(){
try{
ClientServer clientServer = new ClientServer(null);
// We get an entry point from the Python side
IHello hello = (IHello) clientServer.getPythonServerEntryPoint(new Class[] { IHello.class });
// Java calls Python without ever having been called from Python
//System.out.println(hello.sayHello());
//创建数组,并给数组赋值
char[][] arr = new char[2][65535];
for (int i = 0; i < arr.length; i++) {
for (int j = 0; j < 65535; j++) {
arr[i][j]