Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
使用UUID在 Python 中创建唯一用户 ID 的最佳方法是什么?
我会选择 uuid
from uuid import uuid4 def new_user_id(): return uuid4().hex