diff --git a/Python/test.py b/Python/example.py similarity index 100% rename from Python/test.py rename to Python/example.py diff --git a/Python/source/generator.py b/Python/source/generator.py index db5bec6..fc995d7 100644 --- a/Python/source/generator.py +++ b/Python/source/generator.py @@ -2,6 +2,9 @@ 雪花算法生成器IdGenerator """ +# !/usr/bin/python +# coding=UTF-8 + from . import options from . import snowflake_m1 diff --git a/Python/source/idregister.py b/Python/source/idregister.py index 3b981e5..787faac 100644 --- a/Python/source/idregister.py +++ b/Python/source/idregister.py @@ -2,6 +2,10 @@ worker id generator """ +# !/usr/bin/python +# coding=UTF-8 + + from threading import Thread import time import logging diff --git a/Python/source/options.py b/Python/source/options.py index c84a878..17a8047 100644 --- a/Python/source/options.py +++ b/Python/source/options.py @@ -2,6 +2,9 @@ 生成器IdGenerator配置选项 """ +# !/usr/bin/python +# coding=UTF-8 + class IdGeneratorOptions: """ diff --git a/Python/source/snowflake.py b/Python/source/snowflake.py index 045c62d..ea36cfa 100644 --- a/Python/source/snowflake.py +++ b/Python/source/snowflake.py @@ -6,8 +6,6 @@ # !/usr/bin/python # coding=UTF-8 -# 组件编号生成器 - class SnowFlake(): diff --git a/Python/source/snowflake_m1.py b/Python/source/snowflake_m1.py index 6a76ec4..596b76d 100644 --- a/Python/source/snowflake_m1.py +++ b/Python/source/snowflake_m1.py @@ -11,9 +11,6 @@ from .snowflake import SnowFlake from .options import IdGeneratorOptions -# 组件编号生成器 - - class SnowFlakeM1(SnowFlake): """ M1规则ID生成器配置