Commit 825d72fc by BellCodeEditor

save project

parent d3ddc6e8
Showing with 15 additions and 0 deletions
++ "b/QQ\343\200\202py"
...@@ -3,3 +3,5 @@ dict= {'可口可乐':3,'旺仔牛奶':4,'农夫山泉':1,'辣条':3,'巴西烤 ...@@ -3,3 +3,5 @@ dict= {'可口可乐':3,'旺仔牛奶':4,'农夫山泉':1,'辣条':3,'巴西烤
k=input("你要嘛") k=input("你要嘛")
if k in dict: if k in dict:
print("你的"+k+"给"+str(dict[k])+"元") print("你的"+k+"给"+str(dict[k])+"元")
else:
print("没")
\ No newline at end of file
a={"ee":100,"qq":100}
q=input("请输入名字")
w=input("请输入成绩")
if q in a:
if int(w)>a[q]:
a[q]=int(w)
print(q+w+"分")
else:
a[q]=int(w)
print(q+"第一次"+w+"分")
\ 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