# -*- coding=utf8 -*-
import os
import base64
import random
import time
import hashlib
# 方法一
tmp = os.urandom(44)
secret_key = base64.b64encode(tmp)
print(secret_key)
# 方法二
def
Python生成随机字符串SECRET_KEY
最新推荐文章于 2024-04-28 12:17:03 发布