Commit 10675113 by BellCodeEditor

save project

parent d38e9e80
Showing with 8 additions and 3 deletions
......@@ -6,5 +6,10 @@ name=input("您的账号是")
password=input("您的密码是")
# 如果用户输入的账号、密码正确,提示登陆成功
if name==username and password==userpassword:
print("登陆成功")
\ No newline at end of file
while True:
if name==username and password==userpassword:
print("登陆成功")
break
if name!=username or password!=userpassword:
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