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

---
 1.py | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)
 create mode 100644 1.py

diff --git a/1.py b/1.py
new file mode 100644
index 0000000..1a40a85
--- /dev/null
+++ b/1.py
@@ -0,0 +1,20 @@
+i=2
+username="p"
+userpassword="1234"
+while True:
+    if i>0:
+        name=input("请输入用户名:")
+        password=input("请输入密码:")
+        i-=1
+        if name==username and password == userpassword:
+            print("登录成功")
+            break
+        elif name != username:
+            print("用户名输入错误,请重新输入!")
+            print("温馨提示"+ str(i)+"次机会")
+            continue
+        else:
+            print("密码输入错误,请重新输入!")
+            print("温馨提示"+ str(i)+"次机会")
+            exit()
+print("欢迎来到贝尔编程")
\ No newline at end of file
--
libgit2 0.25.0