简单的登陆程序001

Posted 200六

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了简单的登陆程序001相关的知识,希望对你有一定的参考价值。




for i in range(10):
if i< 3:
user_name=int(input("请输入用户名:"))
pass_word=int(input(" 请输入密码:"))
theuser_file = open("123","r")
username=int(theuser_file.readline())#文件第一行123,第二行456
password=int(theuser_file.readline())
theuser_file.close()
if user_name==username and pass_word==password:
print("欢迎用户%s登陆"%username)
break

else:
print("用户名或密码错误")
else:
print("此用户已被锁定请与管理员联系")
file_l=open("123","a+")
file_l.write("99072")
file_l.close()
break
 

 

 

以上是关于简单的登陆程序001的主要内容,如果未能解决你的问题,请参考以下文章

微信小程序实现微信登陆(TP5后端)

(转)博客园登陆__JSEncrypt 分析

简单C程序生成的汇编代码分析

WinForm检测用户是不是已登陆的方法--简单问题--请高手回答!

简单的方法来分享/讨论/协作的代码片段?

android示例:一个简单的登陆程序