import socket sock=socket.socket() try: sock.connect(('127.0.0.1',2018)) except: print('e') finally: print('f')当执行sock.connect超时,如何跳到except中 查看完整描述