标签:
根据老男人需求,需要编写登录接口
name = ‘Allen‘
password = 123
i = 0
while i <3
username = input (‘your username:‘)
pwd = int(input(‘your password:‘))
if username == name and password == pwd:
print (‘welcome!!!‘)
break
else:
print(‘wrong username or password,please try again!!!‘)
i += 1
else:
print (‘lock‘)
需要补充:账号密码文件与锁定文件,有待完善
标签:
原文地址:http://www.cnblogs.com/zhangzhenxing/p/5973903.html