# -*- coding: UTF-8 -*-
# 作者：zxm2015
# 标题：requests 获取网页(1)
# 描述：将url对应的网页下载到本地

import requests


def get_html(url):
    response = requests.get(url=url)
    return response.text


def test():
    url = "http://www.baidu.com"
    html = get_html(url)
    print(html)


if __name__ == '__main__':
    test()
