Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我只是好奇 Py4j 中是否有任何函数可以在 Java 对象中保存新值。我的意思是,使用get_field函数我可以很容易地获取 java 对象的值,并且set_field我可以更改该值,但我想,只能在 Python 中。我看不到 Java 应用程序的任何变化。
get_field
set_field
例子:
A=get_field(record,"values") print (A[0]) A[0]=600 set_field(record,"values",A) print(temp[0])