import uuid identity = str(uuid.uuid4()).encode(‘ascii‘)
python 生成唯一识别码
原文:https://www.cnblogs.com/callyblog/p/10388573.html