Commit 66a7e378 by BellCodeEditor

save project

parent 6921387b
Showing with 17 additions and 10 deletions
i = 3
username = "python" # 保存在服务器数据库中的用户账号(正确的账号) username = "python" # 保存在服务器数据库中的用户账号(正确的账号)
userpassword = "123456" # 保存在服务器数据库中的用户密码(正确的密码) userpassword = "123456" # 保存在服务器数据库中的用户密码(正确的密码)
while True: while True:
password = input("renming") if i>0:
password = input("rtrtt") # 请用input()实现用户输入账号、密码的功能 name = input("renming")
if name == username and password == userpassword: password = input("rtrtt")
print("chenggong") i=1 # 请用input()实现用户输入账号、密码的功能
break if name == username and password == userpassword:
if name != username: print("chenggong")
print("不在!") break
if password != userpassword if name != username:
print("用户名和密码错误!请重新输入") print("不在!")
continue
if password != userpassword:
print("用户名和密码错误!请重新输入")
else
print(sl)
exit()
print("欢迎来到贝尔编程!") print("欢迎来到贝尔编程!")
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