return def run(q, y, x): size = q.empty() while not size: info_id = q.get() amz = Amz(info_id) amz.log_valid(y, x) if q.empty(): break if __name__ == '__main__': q = getinfo.GetInfo('reged_au').get_no(" 0") threads = [] loops = range(20) for i in loops: thread = Thread(target=run, args=(q, 0, 0)) threads.append(thread) for i in loops: threads[i].start() time.sleep(1) for i in loops: threads[i].join()
def __init__(self, info_id): self.info_id = info_id self.data_tool = getinfo.GetInfo('reged_au')
print('{}:注册溜号成功!'.format(amil_num)) return def run(q, y, x): size = q.empty() while not size: info_id = q.get() amz = Amz(info_id) amz.register(y, x) if q.empty(): break if __name__ == '__main__': q = getinfo.GetInfo().get_no("<> 1") threads = [] loops = range(15) for i in loops: thread = Thread(target=run, args=(q, 0, 0)) threads.append(thread) for i in loops: threads[i].start() time.sleep(1) for i in loops: threads[i].join()
return def run(q, y, x): size = q.empty() while not size: info_id = q.get() print(info_id) amz = Amz(info_id) amz.register(y, x) if q.empty(): break if __name__ == '__main__': q = getinfo.GetInfo('reged_jp').get_one_state("<> 1") threads = [] loops = range(10) for i in loops: thread = Thread(target=run, args=(q, 0, 500)) threads.append(thread) for i in loops: threads[i].start() time.sleep(1) for i in loops: threads[i].join()
return def run(q, y, x): size = q.empty() while not size: info_id = q.get() amz = Amz(info_id) amz.log_valid(y, x) if q.empty(): break if __name__ == '__main__': q = getinfo.GetInfo('reged_de').get_no("= 1") threads = [] loops = range(1) for i in loops: thread = Thread(target=run, args=(q, 0, 0)) threads.append(thread) for i in loops: threads[i].start() time.sleep(1) for i in loops: threads[i].join()
return def run(q, y, x): size = q.empty() while not size: info_id = q.get() print(info_id) amz = Amz(info_id) amz.register(y, x) if q.empty(): break if __name__ == '__main__': q = getinfo.GetInfo('reged_us').get_one_state("0") threads = [] loops = range(1) for i in loops: thread = Thread(target=run, args=(q, 0, 0)) threads.append(thread) for i in loops: threads[i].start() time.sleep(1) for i in loops: threads[i].join()
def __init__(self, info_id): self.info_id = info_id self.data_tool = getinfo.GetInfo('yahoo_code')
print('{}:注册溜号成功!'.format(amil_num)) return def run(q, y, x): size = q.empty() while not size: info_id = q.get() amz = Amz(info_id) amz.register(y, x) if q.empty(): break if __name__ == '__main__': q = getinfo.GetInfo('yahoo_code').get_one_state("<> 1") threads = [] loops = range(10) for i in loops: thread = Thread(target=run, args=(q, 0, 0)) threads.append(thread) for i in loops: threads[i].start() time.sleep(1) for i in loops: threads[i].join()
return def run(q, y, x): size = q.empty() while not size: info_id = q.get() print(info_id) amz = Amz(info_id) amz.register(y, x) if q.empty(): break if __name__ == '__main__': q = getinfo.GetInfo('reged_uk').get_one_state("1") threads = [] loops = range(10) for i in loops: thread = Thread(target=run, args=(q, 0, 0)) threads.append(thread) for i in loops: threads[i].start() time.sleep(1) for i in loops: threads[i].join()