#验证码函数def yzm(i): code = [] for i in range(i): if i == random.randint(1,3): code.append(str(random.randint(1,9))) else: tmp = random.randint(65,90) code.append(chr(tmp)) return ‘‘.join(code)
时间: 2024-11-05 02:35:07
#验证码函数def yzm(i): code = [] for i in range(i): if i == random.randint(1,3): code.append(str(random.randint(1,9))) else: tmp = random.randint(65,90) code.append(chr(tmp)) return ‘‘.join(code)