Python生成4-6位数验证码

4位验证码:python code = [] #定义一个空列表名为:code c=open('D:\\python_code\\yanzhenma\\4.txt','a') #使用open函数新建一个D:\python_code\yanzhenma\4.txt文件并写入 for q in range(0,10): #使用for循环利用range建立一个元组q(下标从0-10,也就是1-9)
相关文章
相关标签/搜索