def v_code(): ret = ‘‘ for i in range(5): num = random.randint(0,9) alf = chr(random.randint(65,122)) s = str(random.choice([num,alf])) ret += s return retprint(v_code())
Python之简单验证码实现
原文:https://www.cnblogs.com/geeker-xjl/p/8809915.html