Commit ad6c1df4 by BellCodeEditor

save project

parent debda1ad
Showing with 15 additions and 1 deletions
a={"农夫山泉":2,"旺仔牛奶":4,"乐事薯片":6,"巴西烤肉":10} a={"农夫山泉":2,"旺仔牛奶":4,"乐事薯片":6,"巴西烤肉":10,}
b=input("叮咚~你想要什么?") b=input("叮咚~你想要什么?")
if b in a: if b in a:
print("你买的"+a+"是"+str(a[b])+"元") print("你买的"+a+"是"+str(a[b])+"元")
......
score={"刘文浩":90,"同浩泽":90,"马雨泽":99}
a=input("输入姓名:")
b=input("输入成绩:")
if a in score:
if int(b) > score[a]:
score[a]=int(b)
print("已更新")
else:
print("你的成绩比以前低,未更新")
else:
score[a]=int(b)
print("这是你的第一次成绩")
\ 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