自动创建基于id的唯一ID
示例代码:
import uuid
class MyClass:
def __init__(self, id):
self.id = id
self.unique_id = uuid.uuid1()
obj = MyClass(123)
print(obj.id) # Output: 123
print(obj.unique_id) # Output: an unique id generated based on current time and machine identifier