Commit e0a8d558 by BellCodeEditor

save project

parent 5459bf09
Showing with 4 additions and 5 deletions
username = "python" # 保存在服务器数据库中的用户账号(正确的账号) username = "aa" # 保存在服务器数据库中的用户账号(正确的账号)
user = "123456" user = "123456"
while True: while True:
name=input("输入吧") name=input("输入吧")
...@@ -6,13 +6,12 @@ while True: ...@@ -6,13 +6,12 @@ while True:
if username== name and userpassword==password: if username== name and userpassword==password:
print("ok") print("ok")
break break
print("输错了")
if username!=name: if username!=name:
print("重新输入") print("重新输入")
if userpassword !=password: if userpassword !=password:
print("密码错误") print("密码错误")
print("欢迎")
# 请用input()实现用户输入账号、密码的功能 # 请用input()zz实现用户输入账号、密码的功能
......
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