首页 \ 问答 \ 是否有Twitter的Snowflake UUID生成器的Python实现?(Is there a Python implementation of Twitter's Snowflake UUID generator?)

是否有Twitter的Snowflake UUID生成器的Python实现?(Is there a Python implementation of Twitter's Snowflake UUID generator?)

我需要一个顺序的UUID生成器,如Twitter的Snowflake - https://github.com/twitter/snowflake/

但Snowflake是在Scala中实现的,我在Python世界中找到了类似的项目,而不是Scala。


I need a sequential UUID generator like Twitter's Snowflake - https://github.com/twitter/snowflake/ .

But Snowflake is implemented in Scala, and I'm finding a similar project in the Python world, not Scala.


原文:https://stackoverflow.com/questions/11649947
更新时间:2022-11-25 13:11

最满意答案

我在listview上观看视频时找到了解决方案。 解决方案是将listview的transcriptMode属性设置为disabled

android:transcriptMode = "disabled" - does not scroll
android:transcriptMode = "normal" - scrolls to the bottom if last item is visible
android:transcriptMode = "disabled" - always scrolls to the bottom

i found the solution while watching video on listview. and the solution is by just setting the transcriptMode property of the listview to disabled.

android:transcriptMode = "disabled" - does not scroll
android:transcriptMode = "normal" - scrolls to the bottom if last item is visible
android:transcriptMode = "disabled" - always scrolls to the bottom

相关问答

更多