From ecafb4a4c5331f3c0cb3be887f2307f22e6ee515 Mon Sep 17 00:00:00 2001
From: BellCodeEditor <bellcode_dev@bell.ai>
Date: Sat, 10 Apr 2021 19:40:48 +0800
Subject: [PATCH] save project

---
 bug.py | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/bug.py b/bug.py
index a6a6843..82db4d7 100644
--- a/bug.py
+++ b/bug.py
@@ -1,3 +1,4 @@
+i=3
 username = "python"
 userpassword = "123456"
 while True:
@@ -6,10 +7,8 @@ while True:
     if name == username and password == userpassword:
         print("登录成功!")
         break
-    if username!=name:
-        print("用户名错误,请重新输入")
-        continue
-    if userpassword!=password:
-        print("密码错误,请重新输入")
+    if name != username and password != userpassword:
+        print("您还有"+"i-1"+"次登陆机会")
+
 print("欢迎来到贝尔编程!")    
-   
+   
\ No newline at end of file
--
libgit2 0.25.0