diff --git a/diy2.py b/diy2.py new file mode 100644 index 0000000..fd1b718 --- /dev/null +++ b/diy2.py @@ -0,0 +1,14 @@ +A = "python" +B = "123456" +while True: + C = input("请输入用户名:") + D = input("请输入密码:") + if A == C and B == D: + print("登录成功!") + break + if A != C: + print("NO1") + continue + if B != D: + print("NO2") +print("欢迎来到贝尔编程!") \ No newline at end of file