Python随机生成一个六位数的验证码

import random str = "" str1 = "" list = [] index = 0 num = 0 while num < 6: x = random.choice(range(12)) # 对随机生成的字符进行随机排序 if x < 4: list.append(chr(random.choice(range(10)) + 48))
相关文章
相关标签/搜索