是否有任何库可通过python反序列化,而python已用Java序列化 [英] Is there any library to deserialize with python which is serialized with java
本文介绍了是否有任何库可通过python反序列化,而python已用Java序列化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否存在要用Java序列化的python反序列化的库?
Is there any library to deserialize with python which is serialized with java?
推荐答案
Java序列化是类/数据结构的表示,并与虚拟机紧密相关.因此,要转换到Python世界将很困难.
Java serialisation is a representation of the class/data structures and tightly tied to the virtual machine. Consequently that's going to be difficult to translate to the Python world.
- Your Java program can serialise/deserialise in XML, which would be translatable. Check out JAXB or XStream
- Have you looked at the possibility of running in Jython - the Python implementation in Java
这篇关于是否有任何库可通过python反序列化,而python已用Java序列化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文