Commit b4baf16b by BellCodeEditor

save project

parent 03b695d1
Showing with 21 additions and 0 deletions
username="python"
userpassword="123456"
t=3
while True:
name=input("名字:")
password=input("密码:")
t-=1
if name==username and password==userpassword:
print("o了")
break
if name!=username:
print("名字错了!")
print("只有"+str(t)+"次了")
continue
if password!=userpassword:
print("密码错了!")
print("只有"+str(t)+"次了")
else:
print("垃圾,这都记不住")
print("welcome")
\ 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