Python学习笔记

1. Python中Json转字典的的方法:html = openner.open(req).read()  #html获取到的是一个Json对象           result = loads(html)

2. Python中将对象转换成字典的方法:dict(zip(Object.viewkeys , object.viewvalues ))  

posted @ 2019-01-12 20:09  骑着蜗牛看海呀  阅读(152)  评论(0编辑  收藏  举报