pip安装
pip3 install pysnowflake
启动服务
snowflake_start_server
调用算法
import snowflake.client
def get_snowflake_uuid():
guid = snowflake.client.get_guid()
return guid
get_snowflake_uuid()
pip3 install pysnowflake
snowflake_start_server
import snowflake.client
def get_snowflake_uuid():
guid = snowflake.client.get_guid()
return guid
get_snowflake_uuid()
评论 (0)