Commit e15355ff by BellCodeEditor

save project

parent b06d8425
Showing with 7 additions and 6 deletions
dict_sb={"奥里给":100000}
# 请注释掉上面的代码,并在下一行创建一个名为dict_hero的字典 a=input("你想要买什么东西啊?")
dict_hero={'猴三':10,'猴一':21,'猴五':22,'猴队长':29,'猴七':30} if a in dict_sb:
dict_hero['猴七']=1 print("你要的"+a+str(dict_sb[a])+"美元")
print(dict_hero) else:
print(dict_hero['猴队长']) 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