1: import os
2: import base64 # 导入模块
3: base64.b64encode(os.urandom(48)) #结果如下
4: b'ITk0zqRg18SMvh7XS6WEa4KTaLLcHPWRlSJk5+QJI2KiBm85h702IWUZb+ai8B3G'