用Python写server和client时候如果server中sock.bind(('localhost', 8001)) 则client中sock.connect(('localhost', 8001))
若client的sock.connect(('10.19.180.125', 8001)) 则server中sock.bind(('10.19.180.125', 8001))
用Python写server和client时候如果server中sock.bind(('localhost', 8001)) 则client中sock.connect(('localhost', 8001))
若client的sock.connect(('10.19.180.125', 8001)) 则server中sock.bind(('10.19.180.125', 8001))
转载于:https://www.cnblogs.com/jakejian/p/9848776.html