Commit 442a342d by BellCodeEditor

save project

parent 52dd953f
Showing with 5 additions and 23 deletions
i=3
username = "python"
userpassword = "123456"
while True:
if i>0:
name = input("请输入用户名:")
password = input("请输入密码:")
i-=0
if name == username and password == userpassword:
print("登录成功!")
break
if name!=username:
print("账号不存在")
continue
if name!=userpassword:
print("密码错误")
continuerr
else:
print("账号已锁定")
exit()
print("用户名和密码错误!请重新输入")
print("欢迎来到贝尔编程!")
\ No newline at end of file
score={'悟空语文':95,'悟空数学':88,'悟空英语':85,'悟空美术':97}
print(score['悟空语文'])
print(score['悟空英语'])
print('悟空的英语成绩是',score['悟空英语'],'分')
\ 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