验证码系统

import random
def get_code():
code = ''
for i in range(5):
num = random.randrange(10)
s = chr(random.randint(97,122))
single = random.choice([str(num),s])
code +=single
return code
posted @ 2019-01-11 19:56  L公子  阅读(138)  评论(0编辑  收藏  举报