Commit 30fa799b by BellCodeEditor

auto save

parent 7f1db528
Showing with 8 additions and 21 deletions
username = "python" # 保存在服务器数据库中的用户账号(正确的账号)
userpassword = "123456" # 保存在服务器数据库中的用户密码(正确的密码)
i=3
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("您的账户被锁定")
exit()
print("")
\ No newline at end of file
a=0
for i in range(1,101):
for j in range(1,51):
for x in range(1,21):
if i+2*j+5*x==100:
a=a+1
print(a)
\ 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