Commit 85fb4e4c by BellCodeEditor

save project

parent 48e144d0
Showing with 7 additions and 6 deletions
dict_hero = {'赵一':30,'丁二':37,'孙五':52,'王猛':89,'周亮':98}
dict_hero['刘一泽']=100
print(dict_hero)
dict_hero['赵一']=50
print(dict_hero)
\ No newline at end of file
dict = {'l':10,'g':500,'d':1000}
k=input("需要什么")
if k in dict:
print("您要的"+k+str(dict[k])+"元")
else:
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