From 2200caad729a21751840c9344177d4e1d371dfa0 Mon Sep 17 00:00:00 2001 From: BellCodeEditor <bellcode_dev@bell.ai> Date: Thu, 13 Jan 2022 09:31:13 +0800 Subject: [PATCH] save project --- 0001.py | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 0001.py diff --git a/0001.py b/0001.py new file mode 100644 index 0000000..2b03ecb --- /dev/null +++ b/0001.py @@ -0,0 +1,22 @@ +i=3 +username = "shabi" +userpassword = "102938" +while True: + if i>0: + name = input("用户名") + password = input("密码") + i=i-1 + if name == username and password == userpassword: + print("登陆登录") + break + if name != username: + print("用户名错误") + print("你还有"+str(i)+"就没了") + continue + if password != userpassword: + print("密码错误") + print("你还有"+str(i)+"就没了") + else: + print("别输了,没够了还") + exit() +print("登录成功") \ No newline at end of file -- libgit2 0.25.0