from uuid import uuid4 unique_id = uuid4() short_id = unique_id.hex # 轉換為 32 字符的十六進位字串 print(f"短格式 UUID: {short_id}")