Commit 43aaf7c0 by BellCodeEditor

save project

parent 6dc03d38
Showing with 14 additions and 0 deletions
lb={"身高":180,"体重":150,"综合分数":9.9}
gy={"身高":190,"体重":200,"综合分数":9.8}
zf={"身高":190,"体重":210,"综合分数":8.7}
score={"刘备":lb,"关羽":gy,"张飞":zf}
name=["刘备","关羽","张飞"]
for i in name:
if i in score:
a=score[i]
for k,v in a.items():
if v==190:
print(i)
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