pyjnius:从Python访问Java类

时间:2021-02-03 20:17:07
【文件属性】:
文件名称:pyjnius:从Python访问Java类
文件大小:118KB
文件格式:ZIP
更新时间:2021-02-03 20:17:07
python java jni python27 python36 y属 一个使用Java本机接口(JNI)将Java类作为Python类访问的Python模块。 警告:pypi名称现在是pyjnius而不是jnius 。 安装 pip install pyjnius 快速概述 >> > from jnius import autoclass >> > autoclass ( 'java.lang.System' ). out . println ( 'Hello world' ) Hello world >> > Stack = autoclass ( 'java.util.Stack' ) >> > stack = Stack () >> > stack

网友评论