摘要:        
Scrapy安装 1,Pip install wheel 2,pip install 复制路径+文件名Twisted-18.7.0-cp36-cp36m-win_amd64.whl 3,Pip install scrapy https://germey.gitbooks.io/python3webs    阅读全文
posted @ 2018-08-23 21:32
卧铺车—站
阅读(83)
评论(0)
推荐(0)
            
        
        
摘要:        
import requestsimport json# 1. urlurl = 'http://fanyi.baidu.com/sug'# 2. form/ data/ bodydef translate(kw): form = { 'kw': kw } # # 2.1 字典转换成str # for    阅读全文
posted @ 2018-08-23 21:26
卧铺车—站
阅读(187)
评论(0)
推荐(0)
            
        
        
摘要:        
import re #正则的包 line = "huang123" match_res = re.match('h', line)#以 h 开头匹配 match_res = re.match('h.', line) #以h开头后面跟着一个字符 line = 'h\n' match_res = re.    阅读全文
posted @ 2018-08-23 21:25
卧铺车—站
阅读(139)
评论(0)
推荐(0)
                    
                

浙公网安备 33010602011771号