03 2018 档案

摘要:字符串在Python内部的表示是unicode编码,在做编码转换时,通常需要以unicode作为中间编码,即先将其他编码的字符串解码(decode)成unicode,再从unicode编码(encode)成另一种编码。 decode的作用是将其他编码的字符串转换成unicode编码,如str1.de 阅读全文
posted @ 2018-03-29 10:11 Dozn 阅读(12252) 评论(0) 推荐(1)
摘要:webdriver.firefox() 爬虫需求: (其实是输入参数可获取.zip/pdf 文件,然后点击下载) ——但是firefox浏览器有Bug,点击下载之后会有弹出窗口,需要你点击确定,这怎么能成,所以 百度一把:得知需要修改firefox的配置文件mimeTypes.rdf ——搜索栏输入 阅读全文
posted @ 2018-03-16 15:29 Dozn 阅读(1968) 评论(0) 推荐(0)