#__author__: Administrator #date: 2018/5/5 _uesr = "leiyun520" _paasword = "5201314" i = 0 while True: uesrname = input("UesrName:") paasword = input("Paasword:") i += 1 if _uesr == uesrname and _paasword == paasword: print("登录成功!") break else: if i == 5: print("账号或密码错误!") exit("输入次数过多,请重新启动程序!!") else: print("账号或密码错误!")
while循环
最新推荐文章于 2022-09-18 22:15:23 发布