Commit 02ddbb0a by BellCodeEditor

save project

parent a8a2bd2c
Showing with 6 additions and 2 deletions
usernanme="python" usernanme="python"
userpasswor="123456" userpassword="123456"
while True: while True:
name=input("请输入用户名") name=input("请输入用户名")
password=input("请输入密码") password=input("请输入密码")
#请用input()实现用户输入账号、密码的功能 #请用input()实现用户输入账号、密码的功能
if usernanme==name and userpasswor==password: if usernanme==name and userpassword==password:
print("登录成功") print("登录成功")
break break
if name != usernanme:
print("重新登录用户名")
if password != userpassword:
print("重新登录密码")
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