conn.getpeercert() 目视检查显示证书确定了所需的服务(即HTTPS主机www.python.org): >>>pprint.pprint(cert){'OCSP':('http://ocsp.digicert.com