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))

 

posted @ 2018-09-15 17:42  一纸休书  阅读(163)  评论(0编辑  收藏  举报