#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())
#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())