Commit 524d4ddc by BellCodeEditor

save project

parent 52368ae8
Showing with 6 additions and 2 deletions
...@@ -3,8 +3,11 @@ b="123456" ...@@ -3,8 +3,11 @@ b="123456"
while True: while True:
a1=input("名字:") a1=input("名字:")
b1=input("密码:") b1=input("密码:")
if a==a1 and b==b1 : if a==a1 and b==b1:
print("输入成功") print("输入成功")
break break
print("重新输入") elif a!=a1:
print("名字错误,重新输入")
else :
print("密码错误,重新输入")
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