Commit 19ee5675 by BellCodeEditor

save project

parent d27f5e67
Showing with 7 additions and 4 deletions
...@@ -6,4 +6,6 @@ if k in dict: ...@@ -6,4 +6,6 @@ if k in dict:
print('叮咚~您的'+k+'需要支付'+str(dict[k])+'元~') print('叮咚~您的'+k+'需要支付'+str(dict[k])+'元~')
else: else:
print('神奇百货暂未有你想要的物品,敬请期待~') print('神奇百货暂未有你想要的物品,敬请期待~')
print(dict)
dict.pop("可口可乐")
print(dict) print(dict)
\ No newline at end of file
q={'小明'10'1'10'小明2'10'小明3'10'小明4'10} q={'小明':1,'小明1':1,'小明2':1,'小明3':1,'小明4':1}
K=input("你叫什么") k=input("你叫什么")
v=input("成绩") v=input("成绩")
if k in q: if k in q:
if int(v)>q[k]: if int(v)>q[k]:
...@@ -9,4 +9,4 @@ if k in q: ...@@ -9,4 +9,4 @@ if k in q:
print(k+'同学','未新') print(k+'同学','未新')
else: else:
q[k]=int(v) q[k]=int(v)
print(k+'同学','第一次成绩'+v+'已上传') print(k+'同学','第一次成绩'+v+'已上传')
\ No newline at end of file \ 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