UUID

UUID模块

import uuid

ret = uuid.uuid4()
print(ret,type(ret))

ret = uuid.uuid4()
ret = str(ret)
print(ret,type(ret))

ret = str(uuid.uuid4())[0:5]
print(ret,type(ret))
原文地址:https://www.cnblogs.com/hmw112626/p/9651590.html