Commit 9dd18306 by BellCodeEditor

save project

parent db103499
Showing with 9 additions and 9 deletions
# 这是悟空为花果山小猴做臂力测试的程序代码
#
# 请注释掉上面的代码,并在下一行创建一个名为dict_hero的字典
dict_hero={'猴三':10,'猴一':21,'猴五':22,'猴队长':29,'猴七':30}
dict_hero["猴队长"]
dict_hero["猴队长"]=32
dict_hero["猴十"]=25
if "猴十" in dict_hero:
print("在")
#
dict={"a":3,"s":4,"d":1,"e":3,"y":2,"r":4,"t":5,"i":10,"u":6}
q=input("你想要什么")
if q in dict:
print("这个"+q+"要"+str(dict[q])+"元")
else:
print("不在")
print(dict_hero)
print("缺货")
\ 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