UUID模块
import uuid ret = uuid.uuid4() print(ret,type(ret)) ret = uuid.uuid4() ret = str(ret) print(ret,type(ret)) ret = str(uuid.uuid4())[0:5] print(ret,type(ret))
UUID模块
import uuid ret = uuid.uuid4() print(ret,type(ret)) ret = uuid.uuid4() ret = str(ret) print(ret,type(ret)) ret = str(uuid.uuid4())[0:5] print(ret,type(ret))