From c1511155decfd8e3573f01e0cf4521431d769f19 Mon Sep 17 00:00:00 2001 From: BellCodeEditor <bellcode_dev@bell.ai> Date: Sun, 14 Mar 2021 19:01:58 +0800 Subject: [PATCH] save project --- m.py | 29 +++++++++-------------------- 1 file changed, 9 insertions(+), 20 deletions(-) diff --git a/m.py b/m.py index 0090891..90332f2 100644 --- a/m.py +++ b/m.py @@ -1,21 +1,10 @@ -i=3 -username = "python" -userpassword = "123456" +a = "233" +b = "123456" while True: - if i>0: - x=input("请输入账号:") - y=input("请输入密码:") - i-=1 - if x==username and y==userpassword: - print("密码正确") - break - if x != username: - input("用户名不存在") - continue - if y != userpassword: - input("密码错误") - else: - print("你的账户已被锁定,请等待解锁账号") - exit() - - \ No newline at end of file + x=input("请输入账号:") + y=input("请输入密码:") + if x==a and y==b: + print("密码正确") + break + print("错误!!!") +print("233") \ No newline at end of file -- libgit2 0.25.0