uuid
#_author:来童星
#date:2019/12/8
#1.回顾
class school:
def __init__(self,name):
self.name=name
def __str__(self):
return self.name
s1=school('shanghai')
s2=school('beijing')
print(s1,s2)# shanghai beijing
#2.uuid
import uuid
print(uuid.uuid1())# e62a6fb6-19bf-11ea-b069-907841064ab5
print(uuid.uuid1())# e62ae49a-19bf-11ea-9cfd-907841064ab5
print(uuid.uuid1())# e62ae49b-19bf-11ea-b3a2-907841064ab5
print(uuid.uuid1())# e62ae49c-19bf-11ea-a03b-907841064ab5