From 5a863848f878aeecce87ed2b1d6628dec5da5b3d Mon Sep 17 00:00:00 2001 From: BellCodeEditor <bellcode_dev@bell.ai> Date: Fri, 22 Jul 2022 20:18:14 +0800 Subject: [PATCH] save project --- diy2.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/diy2.py b/diy2.py index 0ab73f8..62514dc 100644 --- a/diy2.py +++ b/diy2.py @@ -1,8 +1,9 @@ - username = "1" userpassword = "123456" while True: name = input("请输入用户名:") + + if name!=username: print("用户名不对,滚!") continue @@ -12,4 +13,4 @@ while True: if name == username and password == userpassword: print("登录成功!") break -print("欢迎来到贝尔编程!") \ No newline at end of file +print("欢迎来到贝尔编程!") -- libgit2 0.25.0