def create_42_guid(sensor_id, proc_pid, proc_createtime):
full_guid = codecs.encode(struct.pack('>IIQ', sensor_id, proc_pid, proc_createtime), "hex")
return '%s-%s-%s-%s-%s' % (full_guid[:8], full_guid[8:12], full_guid[12:16],
full_guid[16:20], full_guid[20:])
评论列表
文章目录