自动化Python到Java的翻译 [英] Automated Python to Java translation

查看:724
本文介绍了自动化Python到Java的翻译的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有可以自动将Python转换为Java的工具?
Jython可以这样做吗?

Is there a tool out there that can automatically convert Python to Java? Can Jython do this?

推荐答案

这可能不是一个简单的问题。
由于每个类型绑定时间的不同,确定如何将Python中定义的类映射到Java类型将是一个很大的挑战。 (鸭子打字与编译时绑定)。

It may not be an easy problem. Determining how to map classes defined in Python into types in Java will be a big challange because of differences in each of type binding time. (duck typing vs. compile time binding).

这篇关于自动化Python到Java的翻译的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆