from xiaochengxu.xiaochenxu_script import allEvent import socket import struct import random appkey = '9f6dfeed6a42210a781bafb7e62dc722' #cid cid = '11469' #surl surl = 'Evmu6na' for _ in range(50): # 随机生成12为数组 i = ''.join(str(random.choice(range(10))) for _ in range(12)) # i = '324014210339' # 随机生成ip ip = socket.inet_ntoa(struct.pack('>I', random.randint(1, 0xffffffff))) #打开 allEvent().openxiaochengxu(i,ip,cid,surl,appkey) #pv # allEvent().pviaochengxu(i,ip,cid,surl,appkey) # #离开 # allEvent().hidechengxu(i,ip,cid,surl,appkey)