Commit 1148b4ec by BellCodeEditor

auto save

parent 23941695
Showing with 14 additions and 7 deletions
username = "python" username = "python"
userpassword = "123456" userpassword = "123456"
name=input("请输入账号:") i=3
password=input("请输入密码:") while True:
if name==username and password==userpassword: if i>0:
print("登录成功") name=input("请输入账号:")
else: password=input("请输入密码:")
print("登录失败") i-=1 #i=i-1
\ No newline at end of file if name==username and password==userpassword:
print("登录成功")
else:
print("登录失败")
else:
exit()
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