diff --git a/diy2.py b/diy2.py
new file mode 100644
index 0000000..be995ef
--- /dev/null
+++ b/diy2.py
@@ -0,0 +1,20 @@
+username = "python"
+userpassword = "123456"
+i=0
+while True:
+    name = input("请输入用户名:")
+    if name!=username:
+            print("账号不存在!请重新输入")
+    else:
+        password = input("请输入密码:")
+        if name == username and password == userpassword:
+            print("登录成功!")
+            break
+        if password!=userpassword:
+            print("密码输入有误!请重新输入")
+    i+=1
+    if i==3:
+        print("账号被锁定,请到我公司解锁")
+        exec()
+    print("你还有"+str(3-i)+"机会")
+print("欢迎来到贝尔编程!")
\ No newline at end of file