Home > Mobile >  how can I generate an unique id for a string. in python
how can I generate an unique id for a string. in python

Time:07-14

how can I generate an unique ID for a string, which means only that string has a that id and if we try to put another string in that function it does not match.

CodePudding user response:

Maybe you are looking for uuid.

CodePudding user response:

You can use something like this

import uuid

uuid.uuid1()

  • Related