如何将哈希键数组的python哈希转换成数组?

2024-07-04 05:32:44 发布

您现在位置:Python中文网/ 问答频道 /正文

我有一本这样的python字典

products = {'results': {'images': 'http://static13.jassets.com/p/Gini-26-Jony-Green-Casual-Shirt-9007-7386721-4-zoom.jpg', 'offers': {}, 'name': ['\n            Green Casual Shirt        '], 'features': {}, 'brand': ['\n            Gini & Jony        ']}}

如何将图像键转换为数组?在

现在图像就像

^{pr2}$

但我希望图像是一个数组

{'images': ['http://static13.jassets.com/p/Gini-26-Jony-Green-Casual-Shirt-9007-7386721-4-zoom.jpg','','','','']}

Tags: 图像comhttp字典green数组jpgimages

热门问题