Python programming encounters an error message

问题1:UnicodeDecodeError: 'ascii' codec can't decode byte 0xe6 in position 1726: ordinal not in range(128)

Problems encountered in python2.* character set encoding utf-8, online solutions:

import sys

reload(sys)
sys.setdefaultencoding('utf8')

-------------------------------------------------------------------------------------------------------------------------------------------------

Problem 2: [Errno 10060] when urllib2 accesses the network


A network connection error Socket error #10060 Connection Timed Out
means that you have a connection timeout error with the server. Please check your Proxy settings and whether the Proxy Server has opened the SSL 443 port

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326760483&siteId=291194637