Commit db114c78 authored by liyuanhong's avatar liyuanhong

去掉了result日志的输出

parent 338a6a4e
...@@ -130,7 +130,7 @@ class M500PressureServer(): ...@@ -130,7 +130,7 @@ class M500PressureServer():
info = self.getCurTime() + " 纬度:" + str(latitude).replace("\n","") + " 经度:" + str(longitude).replace("\n","") info = self.getCurTime() + " 纬度:" + str(latitude).replace("\n","") + " 经度:" + str(longitude).replace("\n","")
info.replace("\n","") info.replace("\n","")
# print(info) # print(info)
self.writeToFile("result.txt", info + "\n", 1) # self.writeToFile("result.txt", info + "\n", 1)
elif self.gpsLineIndex == len(self.gpsLine): elif self.gpsLineIndex == len(self.gpsLine):
self.gpsLineIndex = self.gpsLineIndex - 1 self.gpsLineIndex = self.gpsLineIndex - 1
self.stopTravelService() self.stopTravelService()
......
...@@ -15,8 +15,8 @@ def writeToFile(path,data,type=1): #1:代表追加 0:代表覆盖 ...@@ -15,8 +15,8 @@ def writeToFile(path,data,type=1): #1:代表追加 0:代表覆盖
with open(path, "w", encoding='utf-8') as fi: with open(path, "w", encoding='utf-8') as fi:
fi.write(data) fi.write(data)
carNums = 300 #模拟器数量 carNums = 3000 #模拟器数量
durTime = 25200 #线程持续的时间 durTime = 86400 #线程持续的时间
startDin = 202008280000 #开始的车机号 startDin = 202008280000 #开始的车机号
info = {} #存放脚本运行时的信息 info = {} #存放脚本运行时的信息
info["threadsObj"] = {} #用于运行线程的字典 info["threadsObj"] = {} #用于运行线程的字典
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment