Commit b6c3b4a0 by BellCodeEditor

auto save

parent 1eef80e1
Showing with 11 additions and 21 deletions
student1 = {'语文': 100, '数学': 100, '英语': 100}
student2 = {'语文': 97, '数学': 98, '英语': 90}
student3 = {'语文': 95, '数学': 100, '英语': 93}
score = {'悟空': student1, '诺依': student2, '小贝': student3}
while True:
print('输入名字,退出请按gun')
name = input("名字:")
print('*'*50)
if name in score:
scores=score[name]
for w,a in scores.items():
print(w,a)
print('*'*50)
elif name=='gun':
break
# 查询并打印出输入的名字对应的所有科目的成绩
else:
print('错误!!!!!!!!!!!!!!!!!!!gun')
print('*'*50)
print('完结......')
\ No newline at end of file
import turtle
pen = turtle.Pen()
pen.fillcolor("red")
pen.begin_fill()
for i in range(36):
pen.forward(200)
pen.left(170)
pen.end_fill()
pen.hideturtle()
turtle.done()
\ 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