Commit a85c6842 by BellCodeEditor

auto save

parent 28a7320d
Showing with 21 additions and 0 deletions
import time
print(time.time())
\ No newline at end of file
dic1 = {"语文":20,"数学":45,"英语":18}
dic2 = {"语文":30,"数学":85,"英语":88}
dic3 = {"语文":40,"数学":95,"英语":68}
# 找出小明的英语成绩
scores = {'小王':dic1,'小明':dic2,'小红':dic3}
# name = input("请输出姓名")
# name 小王
xm = scores['小明']
for k,v in xm.items():
if k == "英语":
print(v)
\ 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