Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
car-controlserver
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
wenzhongjian
car-controlserver
Commits
14218069
Commit
14218069
authored
Jan 09, 2025
by
957dd
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update http
parent
80238512
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
90 additions
and
3 deletions
+90
-3
Deviceld.txt
Deviceld.txt
+0
-0
httpserver.py
httpserver.py
+3
-3
log.txt
log/log.txt
+87
-0
No files found.
Deviceld.txt
deleted
100644 → 0
View file @
80238512
httpserver.py
View file @
14218069
...
...
@@ -17,7 +17,7 @@ def get_local_ip():
def
write_to_file
(
data
):
try
:
# 打开文件,模式为写入模式(会清空已有内容)
with
open
(
"Deviceld.txt"
,
"w"
,
encoding
=
"utf-8"
)
as
file
:
with
open
(
"
/home/kickpi/car/master/
Deviceld.txt"
,
"w"
,
encoding
=
"utf-8"
)
as
file
:
file
.
write
(
data
)
print
(
"数据已成功写入 Deviceld.txt"
)
except
Exception
as
e
:
...
...
@@ -26,8 +26,8 @@ def write_to_file(data):
def
read_from_file
():
try
:
if
os
.
path
.
exists
(
"Deviceld.txt"
):
with
open
(
"Deviceld.txt"
,
"r"
,
encoding
=
"utf-8"
)
as
file
:
if
os
.
path
.
exists
(
"
/home/kickpi/car/master/
Deviceld.txt"
):
with
open
(
"
/home/kickpi/car/master/
Deviceld.txt"
,
"r"
,
encoding
=
"utf-8"
)
as
file
:
return
file
.
read
()
return
"文件内容为空。"
except
Exception
as
e
:
...
...
log/log.txt
View file @
14218069
文件 Deviceld.txt 打开失败,等待中...
文件 Deviceld.txt 打开失败,等待中...
文件 Deviceld.txt 打开失败,等待中...
文件 Deviceld.txt 打开失败,等待中...
文件 Deviceld.txt 打开失败,等待中...
文件 Deviceld.txt 打开失败,等待中...
文件 Deviceld.txt 打开失败,等待中...
文件 Deviceld.txt 打开失败,等待中...
文件 Deviceld.txt 打开失败,等待中...
文件 Deviceld.txt 打开失败,等待中...
文件 Deviceld.txt 打开失败,等待中...
文件 Deviceld.txt 打开失败,等待中...
文件 Deviceld.txt 打开失败,等待中...
文件 Deviceld.txt 打开失败,等待中...
文件 Deviceld.txt 打开失败,等待中...
文件 Deviceld.txt 打开失败,等待中...
文件 Deviceld.txt 打开失败,等待中...
文件 Deviceld.txt 打开失败,等待中...
文件 Deviceld.txt 打开失败,等待中...
文件 Deviceld.txt 打开失败,等待中...
文件 Deviceld.txt 打开失败,等待中...
文件 Deviceld.txt 打开失败,等待中...
文件 Deviceld.txt 打开失败,等待中...
文件 Deviceld.txt 打开失败,等待中...
文件 Deviceld.txt 打开失败,等待中...
文件 Deviceld.txt 打开失败,等待中...
文件 Deviceld.txt 打开失败,等待中...
文件 Deviceld.txt 打开失败,等待中...
文件 Deviceld.txt 打开失败,等待中...
文件 Deviceld.txt 打开失败,等待中...
文件 Deviceld.txt 打开失败,等待中...
文件 Deviceld.txt 打开失败,等待中...
文件 Deviceld.txt 打开失败,等待中...
文件 Deviceld.txt 打开失败,等待中...
文件 Deviceld.txt 打开失败,等待中...
文件 Deviceld.txt 打开失败,等待中...
文件 Deviceld.txt 打开失败,等待中...
文件 Deviceld.txt 打开失败,等待中...
文件 Deviceld.txt 打开失败,等待中...
文件 Deviceld.txt 打开失败,等待中...
文件 Deviceld.txt 打开失败,等待中...
文件 Deviceld.txt 打开失败,等待中...
文件 Deviceld.txt 打开失败,等待中...
文件 Deviceld.txt 打开失败,等待中...
文件 Deviceld.txt 打开失败,等待中...
文件 Deviceld.txt 打开失败,等待中...
文件 Deviceld.txt 打开失败,等待中...
文件 Deviceld.txt 打开失败,等待中...
文件 Deviceld.txt 打开失败,等待中...
文件 Deviceld.txt 打开失败,等待中...
文件 Deviceld.txt 打开失败,等待中...
文件 Deviceld.txt 打开失败,等待中...
文件 Deviceld.txt 打开失败,等待中...
文件 Deviceld.txt 打开失败,等待中...
文件 Deviceld.txt 打开失败,等待中...
文件 Deviceld.txt 打开失败,等待中...
文件 Deviceld.txt 打开失败,等待中...
文件 Deviceld.txt 打开失败,等待中...
文件 Deviceld.txt 打开失败,等待中...
文件 Deviceld.txt 打开失败,等待中...
文件 Deviceld.txt 打开失败,等待中...
文件 Deviceld.txt 打开失败,等待中...
文件 Deviceld.txt 打开失败,等待中...
文件 Deviceld.txt 打开失败,等待中...
文件 Deviceld.txt 打开失败,等待中...
文件 Deviceld.txt 打开失败,等待中...
文件 Deviceld.txt 打开失败,等待中...
文件 Deviceld.txt 打开失败,等待中...
文件 Deviceld.txt 打开失败,等待中...
文件 Deviceld.txt 打开失败,等待中...
文件 Deviceld.txt 打开失败,等待中...
文件 Deviceld.txt 打开失败,等待中...
文件 Deviceld.txt 打开失败,等待中...
文件 Deviceld.txt 打开失败,等待中...
文件 Deviceld.txt 打开失败,等待中...
文件 Deviceld.txt 打开失败,等待中...
文件 Deviceld.txt 打开失败,等待中...
文件 Deviceld.txt 打开失败,等待中...
文件 Deviceld.txt 打开失败,等待中...
文件 Deviceld.txt 打开失败,等待中...
文件 Deviceld.txt 打开失败,等待中...
文件 Deviceld.txt 打开失败,等待中...
文件 Deviceld.txt 打开失败,等待中...
文件 Deviceld.txt 打开失败,等待中...
文件 Deviceld.txt 打开失败,等待中...
文件 Deviceld.
\ No newline at end of file
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