Commit a77791ac by BellCodeEditor

save project

parent 7521ebda
Showing with 19 additions and 7 deletions
sb={'g':3,'h':5,'k':7} sb={'牛粪饼':3,'农夫山贼':2,'靓仔牛奶':5,'白事可乐'4,'原审'648}
print(sb['g']) k=input('你要什么,sb')
sb['k']=9 if k in sb :
print(sb) print('sb,要'+str(k)+'元')
sb["m"]=10 else:
print(sb) print('sb,这里没有'+str(k))
\ No newline at end of file
sb={'2b':90,'sb':30,'3b':2}
k=input('请输入你的姓名')
v=input('请输入您的最新成绩')
if k in sb:
if int(v)>sb[k]:
sb[k]=int(v)
print('成绩已更新')
else:
print('成绩真低,sb')
else:
sb[k]=int(v)
print(sb)
\ 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