problem:
Because I upgraded Python from Python2.7 to python3.7 before, there was a version syntax problem
Solution:
After python3, the method of uuid obtaining hexadecimal has changed
import uuid
- key = uuid.uuid4().get_hex() # python2(以前版本)
+ key = uuid.uuid4().hex # python3 (现在版本)
Hope the above is helpful to you all.