摘要:
1 SERVER: 2 3 #!/usr/bin/python 4 # -*- coding: utf-8 -*- 5 import socket 6 import time 7 s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) 8 s.bind(('', 12345)) 9 s.listen(5)10 try:11 12 while 1:13 14 15 16 cs, ca = s.accept()17 18 print cs, ca19 while 1:20 ... 阅读全文