Commit bdf88cee by BellCodeEditor

save project

parent cabae450
Showing with 14 additions and 2 deletions
a={"棒棒糖":55,"巧克力":45,"牛奶":35,"华夫饼":25,"农夫山泉":15}
b=input("你要啥?????????????????????????????????????????????????")
if b in a:
print('你的'+b+'需要支付'+str(a[b])+"元")
else:
print('没有!!!!!!')
\ No newline at end of file
......@@ -9,5 +9,8 @@
# break
# print(list_hero)
# 请注释掉上面的代码,并在下一行创建一个名为dict_hero的字典
dict_hero={'猴三':10,'猴一':21,'猴五':22,'猴队长':29,'猴七':30}
print(dict_hero)
a={'猴三':10,'猴一':21,'猴五':22,'猴队长':29,'猴七':30}
print(a)
a['猴七']=32
a['蔡徐坤']=100
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