且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在Python中生成人类友好的唯一ID?

更新时间:2023-09-22 22:31:46

您想要做的是将音节缝合在一起以创建可发音的伪单词.您可以用任何您喜欢的语言创建音节,以组成可以发音并可以传达但实际上没有任何意义的单词.

What you want to do is stitch together syllables to create pronounceable pseudo words. You can create syllables in any language you like to make up words that can be pronounced and communicated but don't actually mean anything.

此处是有关一个人如何创建人类可读的UID并以语音方式发音的文章以及一些陷阱.

请阅读上面的链接,以了解在采用这种方法时应考虑的一些陷阱.

Read the above link for just some of the pitfalls you should consider when taking an approach like this.

您可以只使用一串字母,但可以将它们显示为北约注音字母只是字母.

You could just use a string of alphabetic letters but present them as the NATO phonetic alphabet instead of just the alphabet.