json:
import json
data='{"id":"content","id2":"content2"}'
jdata=json.loads(data)
jdata.keys()
jdata["id"]
jdata['id2']
distribution: scrapy + scrapy-redis + redis
本文共 217 字,大约阅读时间需要 1 分钟。
json:
import json
data='{"id":"content","id2":"content2"}'
jdata=json.loads(data)
jdata.keys()
jdata["id"]
jdata['id2']
distribution: scrapy + scrapy-redis + redis
转载于:https://www.cnblogs.com/rabbittail/p/7716125.html