Commit 0585703d by BellCodeEditor

save project

parent 311383a8
Showing with 11 additions and 18 deletions
i=3
username="python"
userpassword="000123451"
while True:
if i>0:
name=input("请输入户名")
passwerd =input("请输入密码")
i -=1
if name==username and password==userpassword:
print("登录成功")
break
elif name!=username:
print("你还有"+str(i)+"次登录机会")
print("用户名错误")
else:
print("密码错误,一万个小时再来")
exit()
print("欢迎进入")
bro1="刘备"
bor2="关羽"
bor3="张飞"
bors = ["刘备","关羽","张飞"]
bro1=["刘备",161,9.1]
bor2=["关羽",160,8.5]
bor3=["张飞",166,8.3]
bors[0] = "关羽"
bors[1] = "刘备"
print(bors)
\ 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