Commit 1ca328fc by BellCodeEditor

save project

parent 370cf254
Showing with 32 additions and 8 deletions
def aaa(num):
a = 1
for i in range(2,num+1,2):
a = a * i
print(a)
num = int(input("请输入偶数数字:"))
aaa(num)
\ No newline at end of file
goods={'可口可乐':3,'旺仔牛奶':4,'农夫山泉':1,'辣条':3,'巴西烤肉':2,'果冻':4,'乐事':5,'奥利奥':10,'巧克力':6}
goods.pop("农夫山泉")
print(goods)
username = "python" # 保存在服务器数据库中的用户账号(正确的账号) i=6
userpassword = "123456" # 保存在服务器数据库中的用户密码(正确的密码) username = "python" # 保存在服务器数据库中的用户账号(正确的账号)
userpassword = "20100922" # 保存在服务器数据库中的用户密码(正确的密码)
name=input("请输入你的账号")
password=input("请输入你的密码")
while True:
if i>0
name=input("请输入你的账号")
password=input("请输入你的密码")
if name == username and password == userpassword:
("你终于登录成功了")
i=i-1
break
if name !=username:
print("行不行啊,细狗,用户名错了")
continue
if password != userpassword:
print("太逊了,她生日都忘了")
else:
print("你的次数用完了")
exit()
# 请用input()实现用户输入账号、密码的功能
# 如果用户输入的账号、密码正确,提示登陆成功
\ 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