Commit a1ad4be9 by BellCodeEditor

save project

parent 060cf6d4
Showing with 7 additions and 3 deletions
......@@ -2,11 +2,16 @@ username = "再见" # 保存在服务器数据库中的用户账号(正确
userpassword = "123456" # 保存在服务器数据库中的用户密码(正确的密码)
while True:
name=input("你的账号:")
password=input("你的密码:")
if password!=userpassword and name!=username:
print("你真笨,一个都输不对")
if name!=username:
print("用户名不存在")
if password!=userpassword:
print("密码错误")
if password==userpassword and name==username:
print("正确")
break
else:
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