Commit 0a50c9ef by BellCodeEditor

save project

parent f845b203
Showing with 12 additions and 1 deletions
username="qichuanyi"
userpassword="123456"
name=input("请输入用户名")
password=input("请输入密码")
if name==username and password==userpassword:
print("登录成功")
\ No newline at end of file
......@@ -6,5 +6,8 @@ while True:
if name==username and password==userpassword:
print("成功登录")
break
print("请从新输入")
if name !=username:
print("请从新输入用户名")
if 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