From bdfb0ac3863deb56cb65f2b24280af69064bc433 Mon Sep 17 00:00:00 2001
From: BellCodeEditor <bellcode_dev@bell.ai>
Date: Sat, 13 Mar 2021 17:58:23 +0800
Subject: [PATCH] save project

---
 m.py | 30 ++++++++++++++++++------------
 1 file changed, 18 insertions(+), 12 deletions(-)

diff --git a/m.py b/m.py
index c73a498..0090891 100644
--- a/m.py
+++ b/m.py
@@ -1,15 +1,21 @@
+i=3
 username = "python"
 userpassword = "123456"
 while True:
-    x=input("请输入账号:")
-    y=input("请输入密码:")
-    if x==username and y==userpassword:
-        print("密码正确")
-        break
-    if x != username:
-        input("用户名不存在")
-        continue
-    if y != userpassword:
-        input("密码错误")
-        
-    
\ No newline at end of file
+    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
--
libgit2 0.25.0