Commit cecc7817 by BellCodeEditor

save project

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