代码如下:
#!/usr/bin/env python
# coding:utf-8
id=0
while 1:
user=raw_input("user:")
password=raw_input("password:")
if user == "user" and password == "123":
print "welcome to user manage system"
exit(0)
else:
if id <3:
print "请重新输入"
id=id+1
elif id==3:
print "你已经登陆过三次,请10min以后在登陆"
exit (0)
结果:
最后
以上就是缓慢咖啡豆最近收集整理的关于python脚本输入密码判断的全部内容,更多相关python脚本输入密码判断内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复