Commit 85fb4e4c by BellCodeEditor

save project

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