#coding=utf-8
import random
import time
def createRandomMac():
Maclist = []
for i in range(1,7):
RANDSTR = "".join(random.sample("0123456789abcdef",2))
Maclist.append(RANDSTR)
RANDMAC = ":".join(Maclist)
print RANDMAC
def createRandomX():
return random.randint(0, 1000)
def createRandomY():
return random.randint(0, 640)
def createTime():
return time.strftime("%Y-%m-%d %H:%M:%S", time.localtime())
def creataLine():
def createDataSet():
f=open('1.txt','w')
for i in range(10):
X,Y,time=creataLine();
f.write(str(time) + ',' + str(X) + ',' + str(Y) + '
')