import random
checkcode=''#字符串为空for i in range(4):
current=random.randrange(0,4)
if current==i:
tmp=chr(random.randint(65,90)) #chr()将数字转换成字母else:
tmp=random.randint(0,9)
checkcode+=str(tmp)
print(checkcode)
posted on
2018-01-23 21:4990500042陈
阅读(175)
评论(0)
收藏举报