标签:style div class port == code and 生成 imp
import random ##生成随机验证码 def make_code(n): res = ‘‘ for i in range(n): current = random.randint(0,n) if current == i: tmp = chr(random.randint(65,90)) else: tmp = random.randint(0,9) res += str(tmp) print(res) make_code(5)
标签:style div class port == code and 生成 imp
原文地址:https://www.cnblogs.com/Xuuuuuu/p/9490285.html