<filename>coding/learn_tornado_2/synchronous_demo01.py
# -*- coding: utf-8 -*-
from tornado.httpclient import HTTPClient


http_client = HTTPClient()
response = http_client.fetch('http://www.baidu.com')
print(response.body)

<filename>coding/learn_tornado_2/synchronous_demo01.py
# -*- coding: utf-8 -*-
from tornado.httpclient import HTTPClient


http_client = HTTPClient()
response = http_client.fetch('http://www.baidu.com')
print(response.body)

# -*- coding: utf-8 -*-