摘要: #输入数字,产生对应条数的密码,包括数字,大写字母,小写字母import random,stringcount = input('请输入你要产生多少条密码:').strip()count=int(count)passwds = []f=open('passwds.txt','a+')for i in 阅读全文
posted @ 2018-01-05 09:31 小胖籽 阅读(190) 评论(0) 推荐(0) 编辑
摘要: 改之前: #登陆,从user_info.txt中验证count=1#print(count)f = open('user_info.txt','a+')f.seek(0)user_info = f.read()while count<=3: name = input("请输入您的姓名:").stri 阅读全文
posted @ 2018-01-05 09:14 小胖籽 阅读(86) 评论(0) 推荐(0) 编辑
摘要: #写一个注册,用户密码存到文件中(之前)username = input('请输入你的用户名:').strip()pwd = input('请输入你的密码:').strip()pwd2 = input('请再次确认你的密码:').strip()f = open('user_info.txt','a+ 阅读全文
posted @ 2018-01-05 09:13 小胖籽 阅读(192) 评论(0) 推荐(0) 编辑