Commit 14218069 authored by 957dd's avatar 957dd

update http

parent 80238512
......@@ -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:
......
文件 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
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