package test; import java.util.HashSet; import java.util.Random; import java.util.Set; public class RandomUtil { public static final String ALLCHAR = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"; public static final String LE…
代码展示 import random # 生成200组长度为8的优惠码,字典集是数字加字母 def generate_key(number=200, length=8): char_set = "abcdefghijklmnopqrstuvwxyz0123456789" result = "" for i in range(0, number): temp = "" while(temp == ""): for j in ra…