Commit 891929f5 by BellCodeEditor

save project

parent 79788b73
Showing with 17 additions and 4 deletions
l = {'语文':100,'数学':100,'英语':100} sd1 = {'语文':99.5,'数学':89.5,'英语':87}
for k,v in l.items(): sd2 = {'语文':98,'数学':78,'英语':92.5}
print(k,v) sd3 = {'语文':79.5,'数学':100,'英语':96.5}
\ No newline at end of file sd4 = {'语文':68,'数学':79,'英语':91.5}
sd5 = {'语文':100,'数学':88.5,'英语':93}
sd6 = {'语文':75.5,'数学':99,'英语':100}
score = {'1h':sd1,'2h':sd2,'3h':sd3,'4h':sd4,'5h':sd5,'6h':sd6}
name = input("你叫什么名字呀?")
print("*"*30)
if name in score:
score = score[name]
for k,v in score.items():
print(k,v)
print("*"*30)
else:
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