【发布时间】:2015-10-24 10:40:22
【问题描述】:
我有这个字符串,我希望将其转换为字典:
class_="template_title" height="50" valign="bottom" width="535"
基本上将其更改为:
dict(class_='template_title', height='50', valign='bottom', width='535')
没有什么比这更复杂的了,但我相信这个问题有多个步骤。如果您能解释解决方案或链接到一些文档会很好:)
【问题讨论】:
-
您好@bob,您能否查看其他答案可能会对您有所帮助。谢谢
标签: python string python-3.x dictionary