标签:vat 开发者 python -- activate cti list [] port
import random
def gen_activate_code(length=8):
activate_code_list = []
for i in range(10):
activate_code_list.append(str(i))
for i in range(65,91):
activate_code_list.append(chr(i))
for i in range(97,123):
activate_code_list.append(chr(i))
activate_code = ''.join(random.sample(activate_code_list,length))
return activate_code
print(gen_activate_code())
标签:vat 开发者 python -- activate cti list [] port
原文地址:https://www.cnblogs.com/Frank99/p/9552945.html