Commit a65e52f7 by BellCodeEditor

save project

parent ace0803c
Showing with 13 additions and 6 deletions
dict= {'胃':700000,'大脑':1500000,'肺':500000,'胆囊':400000,'胰腺':1000000,'大肠':1050000,'小肠':500000,'阴茎':100000,'眼球':500000,'牙'50} a={'s':8,'c':2,'d':9,'o':1,'z':4}
j=input('买什么') b=input('姓名')
if j in dict: c=input('成绩')
print("你买的东西"+j+"花费"+str(dict[j])+"元~") if b in a:
if int(c)>a[b]:
a[b]=int(c)
print('成绩已更新')
print(a)
else:
print(b+'的成绩'+str(c)+'分小于或等于原成绩'+str(a[b])+'分')
else: else:
print("没有") a[b]=c
\ No newline at end of file print(a)
\ 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