What is the best way 开发者_开发技巧to create a unique user ID in Python, using UUID?
I'd go with uuid
from uuid import uuid4
def new_user_id():
return uuid4().hex
What is the best way 开发者_开发技巧to create a unique user ID in Python, using UUID?
I'd go with uuid
from uuid import uuid4
def new_user_id():
return uuid4().hex
精彩评论