import string
from random import choice
def generate_random(random_length, type):
"""
随机字符串生成函数
:param random_length:字符串长度
:param type:类型(0:纯数字 1:数字+字符 2:数字+字符——特殊字符)
:return:随机生成的字符串
"""
if type == 0:
random_seed &#
python随机生成验证码拿走不谢
最新推荐文章于 2023-12-01 00:00:22 发布