CDK生成器
# encoding: utf-8
import random
import string
def generate_code(length):
characters = string.ascii_letters + string.digits
return ''.join(random.choice(characters) for _ in range(length))
codes = set()
while len(codes) < 500:
code = generate_code(8)
codes.add(code)
for code in codes:
print(code)