Commit cecc7817 by BellCodeEditor

save project

parent 12c6fa1a
Showing with 13 additions and 12 deletions
i=3
username = "python"
userpassword = "123456"
username = "Samsung Galaxy S23 Ultra"
userpassword = "The samsung account is on the phone."
while True:
if i>0:
name = input("请输入用户名:")
password = input("请输入密码:")
name = input("Print your username:")
password = input("Print your password:")
i-=1
if name == username and password == userpassword:
print("登录成功!")
print("Login successful.")
break
print("用户名和密码错误!请重新输入")
if name!=username:
print("用户名不存在")
print("The username can't be found.Try to print your right username again.")
print("Prompt:you have "+str(i)+" times to login")
continue
if password!=userpassword:
print("密码错误")
else
print("请48小时之后再试")
print("The password is wrong.Try to print your right password again.")
print("Prompt:you have"+str(i)+"times to login")
else:
print("You have got wrong in 3 times.Please try in 48 hours.")
exit()
print("欢迎来到贝尔编程!")
\ No newline at end of file
print("Welcome to Samusung Galaxy Series")
\ 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