Commit 98be510c by BellCodeEditor

save project

parent c593e827
Showing with 19 additions and 4 deletions
# 神奇百货中的物品已经帮你创建好啦,接下来要看你的了~
dict= {'可口可乐':3,'旺仔牛奶':4,'农夫山泉':1,'辣条':3,'巴西烤肉':2,'果冻':4,'乐事':5,'奥利奥':10,'巧克力':6}
k=input('你想买什么呀?')
# 勇于挑战的创造师,请运行这段代码,看看能不能将颜良、文丑加入战场?
a= ['华雄']
a.append('颜良','文丑')
print(a)
#dict_fgdg={"h":2,"l":3,"m":4,"n":2,}
#print(len(dict_fgdg))
#list_fgdg=["h",2,"l",3,"m",4,"n",2,]
#print(len(list_fgdg))
#dict_fgdg["h"]=589 #改
#dict_fgdg["l"]=123
#dict_fgdg["m"]=126
#print(dict_fgdg)
dict={}
dict["h"]="kk" #加
print(dict)
dict["h"]="lkdsf" #改
print(dict)
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