Commit 6e08b2e3 by BellCodeEditor

save project

parent 0acff05e
i=3 text = "周末一起去欢乐谷吧"
username = "python" noise="sbsbsbsbsbbsbssbsbsbsbsbsbbsbsbsbssbbsbsbsbsbbssbbsbsbsbsssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssbbbbbbbbbbbbbbbbbbbbbbbbbb"
userpassword = "123456" li_text = list(text)
while True: print(text)
if i>0:
name = input("请输入用户名:")
password = input("请输入密码:")
i-=1
if name == username :
if password == userpassword:
print("登录成功!")
break
else
print("密码错误")
print("你还有"+str(i)+"机会" )
else
print("用户名错误")
print("你还有"+str(i)+"机会" )
else:
print("账号锁定")
exit()
# if name != username:
# print("用户名错误")
# continue
# if password != userpassword:
# print("密码错误")
print("欢迎来到贝尔编程!")
\ No newline at end of file
meishi={"红烧鱼":36,"手撕鸡":48,"烤鸭":56,"盐焗鸡":78,"时蔬":18,"米饭":3}
for j,k in meishi.items():
print(j,k)
meishi.pop("烤鸭")
meishi.clear()
print(meishi)
\ No newline at end of file
wu={"数学":88,"英语":90,"语文":85}
nuo={"数学":93,"英语":90,"语文":89}
xiao={"数学":84,"英语":92,"语文":84}
for j,k in wu.items
print(j,k)
print(nuo["语文"])
print(xiao[语文]=86)
\ No newline at end of file
s=0
while True:
num=input("手动阀打发发发打发打发打发(q结束):")
if num=="q":
break
try:
www=int(num)
except:
print("返回给大幅度反对恢复供电给")
else:
s=s+int_num
print("是广泛大锅饭地方:",s)
\ No newline at end of file
students={"jonh":10,"Sam":11,"Lily":9,"Anna":10}
students={"jonh":10,"Sam":11,"Lily":9,"Anna":10}
print(students["jonh"])
if "Lily" in students:
students["Lily"]=10
students["Sally"]=11
print(students)
\ 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