python3 访问url

# -*- coding:utf-8 -*-
import requests

r = requests.get('https://www.baidu.com/')
print(r.content)