标签:alt check hid display src range for python class
import random checkcode = ‘‘ for i in range(4): if i == random.randint(0,3): current = chr(random.randrange(65,90)) checkcode += str(current) else: checkcode += str(i) print(checkcode)
[ Python - 5 ] 通过random模块生成随机字符串
标签:alt check hid display src range for python class
原文地址:http://www.cnblogs.com/hukey/p/7076060.html