一首诗 wrote: > socket.gaierror: (10104, 'getaddrinfo failed') You're using a buggy firewall, write to your firewall vendor about this bug. IDLE shell is making a connection over loopback network interface in other words making a connection from your computer to your computer, this type of connection should not be blocked by a firewall.