from urllib import request, error

try:
    response = request.urlopen('https://cuiqingcai.com/index.htm')  # 这里的错误应该是服务器返回的，由函数捕获的。所以不要乱写地址
except error.URLError as e:
    print(e.reason)

eb6cbde20e2ba2f7fd6bb8700b6be1f7bf9bf32e
<mask token>

<mask token>
try:
    response = request.urlopen('https://cuiqingcai.com/index.htm')
except error.URLError as e:
    print(e.reason)

from urllib import request, error
try:
    response = request.urlopen('https://cuiqingcai.com/index.htm')
except error.URLError as e:
    print(e.reason)

from urllib import request, error

try:
    response = request.urlopen('https://cuiqingcai.com/index.htm')  # 这里的错误应该是服务器返回的，由函数捕获的。所以不要乱写地址
except error.URLError as e:
    print(e.reason)
