摘要: server: client: 阅读全文
posted @ 2017-08-14 09:55 cicero 阅读(271) 评论(0) 推荐(0) 编辑
摘要: 1 #!/usr/bin/python 2 # -*- coding: UTF-8 -*- 3 4 import thread 5 import time 6 7 8 # 为线程定义一个函数 9 def print_time(threadName, delay): 10 count = 0 11 while count < 5: 12 ti... 阅读全文
posted @ 2017-08-14 09:53 cicero 阅读(154) 评论(0) 推荐(0) 编辑
摘要: 1 #!/usr/bin/python 2 3 import urllib2 4 import time 5 import logging 6 import threading 7 8 succCount = 0 9 failCount = 0 10 IP = '127.0.0.1' 11 port = '9997' 12 postUrl = "http://%s:%s/"... 阅读全文
posted @ 2017-08-14 09:50 cicero 阅读(169) 评论(0) 推荐(0) 编辑