摘要: 获取文件后缀os.path.splitext(file)[-1] 整型转字符窜>>> print str(10000L)10000 json.dumps是将dict转化成str格式,json.loads是将str转化成dict格式。 #生成一个字典d = {'name':{},'age':{},'s 阅读全文
posted @ 2019-05-11 20:20 酷酷的城池 阅读(122) 评论(0) 推荐(0) 编辑
摘要: strs=''' content-type: application/x-www-form-urlencoded cookie: _iuqxldmzr_=32; _ntes_nnid=cb19ce2c34b69416ecbc14b408135460,1552790636492; _ntes_nuid=cb19ce2c34b69416ecbc14b408135460; WM... 阅读全文
posted @ 2019-05-11 20:19 酷酷的城池 阅读(788) 评论(0) 推荐(0) 编辑
摘要: import requestsfrom bs4 import BeautifulSoupimport reimport osimport jsonfrom urllib import parseheaders='''Accept-Ranges: bytesAccess-Control-Allow-O 阅读全文
posted @ 2019-05-11 20:16 酷酷的城池 阅读(843) 评论(0) 推荐(0) 编辑