Commit b8e5c50c by BellCodeEditor

save project

parent a996c639
Showing with 48 additions and 13 deletions
i=3
username = "python"
userpassword = "123456"
while True:
if i>0:
name=input("请输入您的帐号:")
password=input("请输入您的密码:")
i-=1
if name == username and password == userpassword:
print("登录成功!")
break
if name != username:
print("不存在")
continue
if password != userpassword:
print("有误")
else:
print("密码yoyo")
exit()
print("欢迎")
\ No newline at end of file
dict_hero={"猴三":10,"猴一":21,"猴五":22,"猴队长":29,"猴七":30}
print(dict_hero)
print(dict_hero["猴队长"])
dict_hero["猴七"]=32
print(dict_hero)
dict_hero["猴十"]=25
print(dict_hero)
\ No newline at end of file
i=3
username = "python"
userpassword = "123456"
while True:
name=input("请输入您的帐号:")
password=input("请输入您的密码:")
if name == username and password == userpassword:
print("登录成功!")
break
if name !=username:
print("不存在")
if password != userpassword:
print("有误")
print("错误")
print("欢迎")
\ No newline at end of file
while True:
if i>0:
name=input("请输入您的帐号:")
password=input("请输入您的密码:")
i-=1
if name == username and password == userpassword:
print("登录成功!")
break
if name != username:
print("不存在")
continue
if password != userpassword:
print("有误")
else:
print("密码yoyo")
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