import random
'''
引入random模块,
'''
checkcode = ''
for i in range(4):
current = random.randrange(0, 4)
if current != 1:
temp = chr(random.randint(65, 100))
else:
temp = random.randint(0, 9)
checkcode += str(temp)
print(checkcode)

 

posted on 2021-10-25 23:42  Star*S  阅读(48)  评论(0)    收藏  举报