标签:print random 验证码 验证 col opened gif and display
mport random print random.random() print random.randint(1,2) print random.randrange(1,10)
import random checkcode = ‘‘ for i in range(4): current = random.randrange(0,4) if current != i: temp = chr(random.randint(65,90)) else: temp = random.randint(0,9) checkcode += str(temp) print checkcode
标签:print random 验证码 验证 col opened gif and display
原文地址:http://www.cnblogs.com/demonzk/p/7614038.html