diy2.py 298 Bytes Edit 1 2 3 4 5 6 7 8 9 10 username = 'python' userpassword = "123456" while True: a=input('输入账号:') b=input('输入密码:') if username==a and userpassword==b: input("登录成功:") break print("用户名或密码错误!请重新输入") print("欢迎来到贝尔编程!")