- 授权协议: GPLv3
- 开发语言: Java Python
- 操作系统: Windows
- 软件首页: https://pyjnius.readthedocs.org/
- 软件文档: http://pyjnius.readthedocs.org/en/latest/index.html
- 官方下载: https://github.com/kivy/pyjnius/releases
软件介绍
Pyjnius 是一个 Python 库,为 Python 程序提供访问 Java 类的方法,支持桌面和 Android 系统。
示例代码:
>>> from jnius import autoclass
>>> Stack = autoclass('java.util.Stack')
>>> stack = Stack()
>>> stack.push('hello')
>>> stack.push('world')
>>> stack.pop()
'world'
>>> stack.pop()
'hello'
