day_5.04py

  

#! /usr/bin/env/python 
#-*-coding:utf-8-*-
'''
How to install the package: If there is only one python default pip in the computer,
if there are two python3, it is pip3 install requests Install to python3 Using the newly installed requests library

in .6 /site-packages to climb to a Baidu homepage to install things is laborious, but it feels good to try new things,
but there are no books,
'''
import requests
data = requests.get("https:/ /www.baidu.com/")
data.encoding = "utf-8"
print(data.text)

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325260135&siteId=291194637