import uuid
name = uuid.uuid4()
print(name)

uuid 生成随机名称_代码

 


类型为 
<class 'uuid.UUID'>

2021-01-07

如果觉得文章不错,可以分享给其他人哟~