Commit f0d88789 by BellCodeEditor

save project

parent 0ed48773
Showing with 5 additions and 0 deletions
username = "python"
userpassword = "123456"
i=0
while True:
if i=3:
name = input("请输入用户名:")
password = input("请输入密码:")
if name == username and password == userpassword:
......@@ -8,7 +10,9 @@ while True:
break
if username!=name:
print("姓名错误")
i=i+1
elseuserpassword!=password
print("密码错误")
i=i+1
print("用户名和密码错误!请重新输入")
print("欢迎来到贝尔编程!")
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment