摘要: formdata = {'...': '...', '......': '......', '......': '......'}HEADERS = { 'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_3) AppleWebKi 阅读全文
posted @ 2019-02-25 21:48 DSKer 阅读(511) 评论(0) 推荐(0) 编辑
摘要: json库 字符串和字典的转换 x = json.loads(y) 把y字符串变成x字典 x = json.dumps(y) 把y字典变成字符串 Unicode编码输出 print x.encode('utf-8') Python 以字符串的形式导入模块 HTTP常见状态码 200 – 服务器成功返 阅读全文
posted @ 2019-02-25 18:32 DSKer 阅读(196) 评论(0) 推荐(0) 编辑