From f794eb5e992677b2d01a9d4c9f409161fb5d1c70 Mon Sep 17 00:00:00 2001 From: BellCodeEditor <bellcode_dev@bell.ai> Date: Sun, 6 Dec 2020 14:35:10 +0800 Subject: [PATCH] auto save --- diy2.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/diy2.py b/diy2.py index a97a8e7..0e3576d 100644 --- a/diy2.py +++ b/diy2.py @@ -1,6 +1,8 @@ username = "python" userpassword = "123456" while True: + if i>0: + pass name = input("请输入用户名:") password = input("请输入密码:") if name == username and password == userpassword: @@ -12,3 +14,4 @@ while True: if password != userpassword: print("密码错误请重新输入") print("欢迎来到贝尔编程!") +exit() -- libgit2 0.25.0