From 8d8b6e609219d5200750fc20e87b42bb8d61b688 Mon Sep 17 00:00:00 2001 From: koukouchan <1010433454@qq.com> Date: Wed, 24 Aug 2022 21:42:26 +0800 Subject: [PATCH] update: remove something --- Python/{test.py => example.py} | 0 Python/source/generator.py | 3 +++ Python/source/idregister.py | 4 ++++ Python/source/options.py | 3 +++ Python/source/snowflake.py | 2 -- Python/source/snowflake_m1.py | 3 --- 6 files changed, 10 insertions(+), 5 deletions(-) rename Python/{test.py => example.py} (100%) 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生成器配置