我目前得到这样的输出:
http://www.site.com/prof.php?pID=478http://www.site.com/prof.php?pID=693
在使用下面评论者的建议后,我有:
urls = [el.url for el in domainLinkOutput]
return HttpResponse(urls)
如何将此输出转换为 python 字典,例如:
urls = { '0': 'http://www.site.com/prof.php?pID=478', '1': 'http://www.site.com/prof.php?pID=693' }