python隨機驗證碼生成

def v_code(): ret = 「」 for i in range(5): num = random.randint(0,9) alf = chr(random.randint(65,122)) num_alf = str(random.choice([num,alf])) ret +=num_alf return ret print (v_code())web
相關文章
相關標籤/搜索