From 52dcb648a7d74a272565f2d0c232b7de1b8c0733 Mon Sep 17 00:00:00 2001 From: BellCodeEditor <bellcode_dev@bell.ai> Date: Fri, 30 Jul 2021 09:35:20 +0800 Subject: [PATCH] save project --- bug.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/bug.py b/bug.py index 7abfa4d..aed9d21 100644 --- a/bug.py +++ b/bug.py @@ -1,6 +1,10 @@ username="pythan" userpassword="123456" -name = input("输入账号") -password = input("输入密码") -if name==username and password==userpassword: - print("登陆成功") \ No newline at end of file +while True: + name = input("输入账号") + password = input("输入密码") + if name==username and password==userpassword: + print("登陆成功") + break + print("账号或密码错误,请重试") +print("欢迎来到天水二院") -- libgit2 0.25.0