Commit e8965d8c by BellCodeEditor

save project

parent 62ec2b21
Showing with 11 additions and 4 deletions
dict_s={'a':1,'b':2,'c':3} dict = {}
dict_s['b'] = 3 while True:
print(dict_s) k = input('请输入姓名:')
\ No newline at end of file v = input('请输入成绩:')
if k in dict:
if dict[k] < int(v):
dict[k] = int(v)
else:
dict[k] = int(v)
print(dict)
\ 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