Commit 7fb0ff1f by BellCodeEditor

save project

parent 6b30c627
Showing with 7 additions and 8 deletions
# 这是悟空为花果山小猴做臂力测试的程序代码 # 这是悟空为花果山小猴做臂力测试的程序代码
name=input('你叫啥名啊?') dict={"牛奶":880,"乐事":430,"雷碧":679,"康帅傅脑残酸菜牛肉面":1986}
power=int(input('你臂力多少啊?')) k=input("sb,你想要啥")
# 请注释掉上面的代码,并在下一行创建一个名为dict_hero的字典 if k in dict:
dict_hero={"速度":40,"简单":60,"闪电":79} print("焯你的"+k+"需要"+str(dict[k])+"元")
print(dict_hero["简单"]) else:
dict_hero["简单"]=70 print("焯,没的,滚")
dict_hero["sb"]=25
print(dict_hero)
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