Commit 92431de7 by BellCodeEditor

save project

parent 196da699
Showing with 14 additions and 1 deletions
-- "a/\345\233\236\345\244\215v\351\273\221\351\276\231\346\261\237\345\210\233\345\273\272.py" sc={"白菜":32}
sc={"白菜":32}
a=input("啥菜?")
b=input("多钱?")
if a in sc:
if int(b)<sc[a]:
sc[a]=int(b)
print("买"+a)
else:
print("不买"+a)
else:
sc[a]=int(b)
print(a+b+"元")
\ 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