Commit fd47385f by BellCodeEditor

save project

parent 86725f15
Showing with 8 additions and 1 deletions
...@@ -4,7 +4,14 @@ i=3 ...@@ -4,7 +4,14 @@ i=3
while True: while True:
if i>0 if i>0
# 请用input()实现用户输入账号、密码的功能 # 请用input()实现用户输入账号、密码的功能
name = input() name = input("请输入账号")
password = input("请输入密码")
i-=1
if name == username and password == userpassword:
print("登陆成功")
break
if name!=username
else: else:
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