数字转换为字母
chr(66) 65 -90 是大写字母
import random
temp = ""
for i in range(4):
num = random.randrange(0,4)
if num ==3 or num ==1
rad2 = random.randrange(0,10)
temp+=str(rand2)
else:
i = random.randrange(65,91)
temp+= chr(i)
获得四位随机大写字母
数字转换为字母
chr(66) 65 -90 是大写字母
import random
temp = ""
for i in range(4):
num = random.randrange(0,4)
if num ==3 or num ==1
rad2 = random.randrange(0,10)
temp+=str(rand2)
else:
i = random.randrange(65,91)
temp+= chr(i)
获得四位随机大写字母