import random
checkcode=''
for i in range(4):
    current=random.randrange(0,4)
    if current==i:
        tmp=chr(random.randint(65,90))
    else:
        tmp=random.randint(0,9)
    checkcode+=str(tmp)
print(checkcode)

 

posted on 2018-03-15 22:06  zechome  阅读(98)  评论(0)    收藏  举报