def multiScan(self): """ Scan and return an array of PIL objects If no images, will return an empty array """ self.scanner.RequestAcquire(0, 1) images = [] handles = [] try: handle, more = self.scanner.XferImageNatively() han…
简易版: #author:Blood_Zero #coding:utf-8 import socket import sys PortList=[21,22,23,25,80,135] # host=sys.argv[1] for i in PortList: sock=socket.socket() sock.settimeout(2) try: sock.connect((host,i)) print "the port %d is open" %i except Exceptio…