📜  从给定的字符串 python 代码示例生成唯一的 id

📅  最后修改于: 2022-03-11 14:46:53.676000             🧑  作者: Mango

代码示例1
# Python3 code to generate the 
# random id using uuid1() 
  
import uuid 
  
# Printing random id using uuid1() 
print ("The random id using uuid1() is : ",end="") 
print (uuid.uuid1()) 

# Output
# The random id using uuid1() is : 67460e74-02e3-11e8-b443-00163e990bdb