标签:print shu 验证码 form bsp amp += 验证 .sh
#eg item=[1,3,5,7,9] random.shuffle(item) print(item)
#实现验证码 import random def v_code(): ret = ‘‘ for i in range(4): num = str(random.randint(0,9)) alf = chr(random.randint(65,122)) s = random.choice([num,alf]) ret += s return ret print(v_code())
标签:print shu 验证码 form bsp amp += 验证 .sh
原文地址:https://www.cnblogs.com/josie930813/p/9680926.html