陈良智 发表于 2022-2-10 13:20
req='{"status":1,"data":{"days":252,"mdays":2,"reward":617,"qtime":"昨天 19:33","url":"https: ...
PS C:\Users\Administrator> py
Python 3.9.8 (tags/v3.9.8:bb3fdcf, Nov 5 2021, 20:48:33) [MSC v.1929 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> req=r'{"status":1,"data":{"days":252,"mdays":2,"reward":617,"qtime":"<span title=\"2022-2-9 19:33\">昨天 19:33<\/span>","url":"https:\/\/bbs.125.la\/thread-14716817-1-1.html","credit":1}}'
>>> req=dict(eval(req))
>>> req
{'status': 1, 'data': {'days': 252, 'mdays': 2, 'reward': 617, 'qtime': '<span title="2022-2-9 19:33">昨天 19:33<\\/span>', 'url': 'https:\\/\\/bbs.125.la\\/thread-14716817-1-1.html', 'credit': 1}}
>>> type(req)
<class 'dict'>
>>>