python随机生成六位大写字母数字(字母OI除外)
def get_pin():
number = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9']
letter = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'J', 'K',
'L', 'M', 'N', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z']
total_set = number + letter
value_set = "".join(random.sample(total_set, 6))
return value_set