mirror of
https://github.com/dptech-corp/Uni-Lab-OS.git
synced 2025-12-17 04:51:10 +00:00
Initial commit
This commit is contained in:
4
unilabos/utils/tools.py
Normal file
4
unilabos/utils/tools.py
Normal file
@@ -0,0 +1,4 @@
|
||||
# 辅助函数:将UUID数组转换为字符串
|
||||
def uuid_to_str(uuid_array) -> str:
|
||||
"""将UUID字节数组转换为十六进制字符串"""
|
||||
return "".join(format(byte, "02x") for byte in uuid_array)
|
||||
Reference in New Issue
Block a user