在python中取消排序PHP数据 [英] Unserialize PHP data in python

查看:114
本文介绍了在python中取消排序PHP数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


可能重复:

如何阅读/理解python中的PHP序列化数据字符串

我使用python访问由Drupal安装管理的数据库。我想在Drupal中访问的数据保存在数据库中作为PHP序列化对象。

I'm using python to access a database which is managed by a Drupal install. The data I want to access in Drupal in saved in the database as a PHP serialized object.

是否有任何预构建的python模块可以反序列化一个PHP序列化对象一个python对象?我已经做了一些搜索,没有任何东西。

Are there any pre-built python modules which can deserialize a PHP serialized object into a python object? I've done some searching and come up with nothing.

我意识到我可以从头开始编写自己的解析器,但我宁愿使用经过测试和测试的东西。

I realize I could write my own parser from scratch but I'd rather use something thats been tried and tested.

推荐答案

你在寻找 phpserialize

这篇关于在python中取消排序PHP数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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