Commit 68714a28 by BellCodeEditor

auto save

parent a2ac2109
Showing with 10 additions and 2 deletions
#1.创建一个文件1.txt,
\ No newline at end of file
food = {"可口可乐":4,"辣条":3,"薯片":12}
#1.输入名字和价格
#2.判断商品是否在字典中
#3.判断新商品和原本字典中的商品哪个更便宜
#4.便宜就修改字典的值
#5.否则就输出太贵了
#6.如果不在就添加进字典中,并输出
\ 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