实现方案导入导出,根据选项自动生成文件名

This commit is contained in:
ranchuan
2024-01-15 18:07:02 +08:00
parent 5b3786dd36
commit 89ef0a6514
20 changed files with 2141 additions and 252 deletions

View File

@@ -323,16 +323,16 @@ if __name__ == "__main__":
# 检测并写入流水号
# data=coder_check_write_sn(0,12345)
# # 检测并读取工厂信息和延时
# data=coder_check_read_fatinfo(0)
# 检测并读取工厂信息和延时
data=coder_check_read_fatinfo(0)
# data=bytearray.fromhex("0d 00 00 0d 01 1f 0a 01 18 02 0a 05 01 14 00 04 00")
# u.cmd=0x21
# data=u.encode(data)
# print(data.hex(' '))
def fun():
return "fun_test"
d={"fun":fun
}
print(d["fun"]())
u.cmd=0x21
data=u.encode(data)
print(data.hex(' '))
# def fun():
# return "fun_test"
# d={"fun":fun
# }
# print(d["fun"]())