2018-04-21 python总结

r= session.get(HOST_API+url3,headers=headers)
    print(r.cookies)
    print(r.content)
    img = {'image':r.content}
    headers={'Content-Type':'multipart/form-data'}
    r = requests.post(verify_url,data=verify_params,files=img,headers=headers,
    timeout=60)

beautifulsoup 安装:

Python改为Python3
接着打开终端,开始切换至解压的文件夹
cd Desktop
cd beautifulsoup4-4.4.1
接着告诉python给老子安上这个package
sudo python3 ./setup.py install

你可能感兴趣的:(2018-04-21 python总结)