#!/usr/bin/env python
#-*- encoding:utf-8 -*-

import requests

# get请求方式二
url = 'https://www.sogou.com/web'

# 将参数封装到字典里
params = {
    'query':'周杰伦',
    'ie':'utf-8'
}

response = requests.get(url=url,params=params)

page_text = response.text

print(page_text)


7c9726d26c2deef2db7456a214cf5238fe6b7023
<mask token>

<mask token>
print(page_text)

<mask token>
url = 'https://www.sogou.com/web'
params = {'query': '周杰伦', 'ie': 'utf-8'}
response = requests.get(url=url, params=params)
page_text = response.text
print(page_text)

import requests
url = 'https://www.sogou.com/web'
params = {'query': '周杰伦', 'ie': 'utf-8'}
response = requests.get(url=url, params=params)
page_text = response.text
print(page_text)

#!/usr/bin/env python
#-*- encoding:utf-8 -*-

import requests

# get请求方式二
url = 'https://www.sogou.com/web'

# 将参数封装到字典里
params = {
    'query':'周杰伦',
    'ie':'utf-8'
}

response = requests.get(url=url,params=params)

page_text = response.text

print(page_text)

