我知道以前有人问过这种问题,但我找不到解决问题的办法
我的函数将以这种格式返回unicode
{"set_id": "Rome", "group": "human", "attachments": null, , "object_type": "Prop", "attached": null, "tag_id": "prop", "Double Click": "reference", "files": "/makeup/Data/weapons/rifle", "source": "cupid", "attachment_label": null, "require_attachment": true, "rate": "high", "location": "/set2/ep1/Objects/weapons/machineguns/gun.txt", "attachment_type": null, "icon_path": "/resource/asset_manager/icons/rifle.bmp"}
在检查类型时,显示它是<type 'unicode'>
我试过用ast.literal_eval(myver)
但是没有运气
还有哪些方法可以将其转换为python字典?
目前没有回答
相关问题 更多 >
编程相关推荐