Commit 992fdd23 by BellCodeEditor

save project

parent 6751e730
Showing with 15 additions and 4 deletions
thing={'可口可乐':1,'百事可乐':5,'过期的薯片':10}
k=input("您要什么")
if k in thing:
print(k+str(thing[k])+"元")
else:
print("滚蛋,这儿没有。再不走就杀了你")
\ No newline at end of file
dict_hero={}
dict_hero["猴十"]=25
print(dict_hero)
\ No newline at end of file
dict_hero={"猴一":50}
dict_hero['猴十']=25
# print(dict_hero)
if '猴十' in dict_hero:
print(dict_hero['猴十'])
\ 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