Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
m500-pressure
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李远洪
m500-pressure
Commits
db114c78
Commit
db114c78
authored
Sep 09, 2020
by
liyuanhong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
去掉了result日志的输出
parent
338a6a4e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
lib/socket/service/M500PressureServer.py
lib/socket/service/M500PressureServer.py
+1
-1
start.py
start.py
+2
-2
No files found.
lib/socket/service/M500PressureServer.py
View file @
db114c78
...
...
@@ -130,7 +130,7 @@ class M500PressureServer():
info
=
self
.
getCurTime
()
+
" 纬度:"
+
str
(
latitude
)
.
replace
(
"
\n
"
,
""
)
+
" 经度:"
+
str
(
longitude
)
.
replace
(
"
\n
"
,
""
)
info
.
replace
(
"
\n
"
,
""
)
# print(info)
self
.
writeToFile
(
"result.txt"
,
info
+
"
\n
"
,
1
)
#
self.writeToFile("result.txt", info + "\n", 1)
elif
self
.
gpsLineIndex
==
len
(
self
.
gpsLine
):
self
.
gpsLineIndex
=
self
.
gpsLineIndex
-
1
self
.
stopTravelService
()
...
...
start.py
View file @
db114c78
...
...
@@ -15,8 +15,8 @@ def writeToFile(path,data,type=1): #1:代表追加 0:代表覆盖
with
open
(
path
,
"w"
,
encoding
=
'utf-8'
)
as
fi
:
fi
.
write
(
data
)
carNums
=
300
#模拟器数量
durTime
=
252
00
#线程持续的时间
carNums
=
300
0
#模拟器数量
durTime
=
864
00
#线程持续的时间
startDin
=
202008280000
#开始的车机号
info
=
{}
#存放脚本运行时的信息
info
[
"threadsObj"
]
=
{}
#用于运行线程的字典
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment