推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
anonymoustian
V2EX  ›  Python

Java 能否调用 Python 代码然后打包成 jar 文件放到 Java 的平台去运行? 谢谢帮助,回复全部感谢。

  •  
  •   anonymoustian · Jan 15, 2016 · 4605 views
    This topic created in 3800 days ago, the information mentioned may be changed or developed.

    事情是这样,一个小工程的 Python 代码被要求用 Java 重构一遍。
    但是有些地方实在不知道怎么用 Java 写。
    有一个问题就是能否把 python “镶嵌” 到 Java 代码里, 然后 我生成 jar 文件后 放到平台上运行?

    运行环境不装 Python 。

    可能吗?谢谢!

    2 replies    2016-01-16 13:35:31 +08:00
    winkidney
        1
    winkidney  
       Jan 15, 2016   ❤️ 1
    jython
    OldHu
        2
    OldHu  
       Jan 16, 2016   ❤️ 1
    试试 jython
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5240 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 43ms · UTC 07:35 · PVG 15:35 · LAX 00:35 · JFK 03:35
    ♥ Do have faith in what you're doing.