摘要: json对象格式:{"key1": "value1", "key2": "value2"} json.dumps(): 对数据进行编码。json.loads(): 对数据进行解码。 Python JSON dict object list,tuple array str string int,float number True ... 阅读全文
posted @ 2017-12-27 18:22 白小白001 阅读(140) 评论(0) 推荐(0) 编辑
摘要: 1、读写txt 2、写excel 3、读excel 阅读全文
posted @ 2017-12-27 18:18 白小白001 阅读(179) 评论(0) 推荐(0) 编辑
摘要: 2、编解码实例 阅读全文
posted @ 2017-12-27 18:14 白小白001 阅读(150) 评论(0) 推荐(0) 编辑
摘要: python3中没有urllib2 python3 与 python2 关于 urllib的区别用法如下 1、urlopen 2、urlretrieve 3、quote 4、urlencode 阅读全文
posted @ 2017-12-27 18:04 白小白001 阅读(127) 评论(0) 推荐(0) 编辑
摘要: requests是python第三方库,基于urllib,比urllib更方便,但更耗时,不能多线程运行 1、get请求 2、post请求 1)普通post请求 2)post发送json 3)定制header 阅读全文
posted @ 2017-12-27 17:56 白小白001 阅读(118) 评论(0) 推荐(0) 编辑