Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
从标题。
可能的?是的,一切皆有可能:)
但这明智吗?恐怕它太特定于 Python,因此在 PHP 中为 Python 数据结构编写解析器不会有任何乐趣。
如果您真的需要这样做,那么我建议您在 Python 中构建一个中间层,然后通过一个可在 PHP 中使用的接口公开您的 ZODB。一种可能性是使用 HTTP 作为协议,然后使用 JSON、XML 或任何其他你想要的有效负载。
你可以从 PHP 调用 XML-RPC 接口方法