We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f920325 commit 5f44f50Copy full SHA for 5f44f50
src/Plugin/A_Plus_B_import_Java_schz/__init__.py
@@ -3,6 +3,7 @@
3
4
import hpyculator as hpyc
5
import jpype
6
+import atexit
7
8
NAME = "高精度浮点数加法(基于Java)"
9
VERSION = "V1.0.3"
@@ -79,3 +80,4 @@ def on_calculate(data, todo):
79
80
else:
81
hpyc.write(jpype.JClass("com.shacha.Main").main(a, b))
82
# jpype.shutdownJVM() Shutdown must be called from main thread
83
+ atexit.register(jpype.shutdownJVM) # 退出执行函数,否则虚拟机不会退出,导致退出残留
0 commit comments