How to effectively convert java code to Python?

I would be glad if you could tell me how to translate code from Java to python

Solution

If you want to translate java code into python, you must translate it manually Automatic conversion usually does not have the appropriate quality There seem to be some tools, such as Java2 python, but the author says

Converting a library to another programming language is by no means easy

If you only want to use Java libraries in applications that you want to write in Python, try Jython. Com

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>