Commit 159742e5 by BellCodeEditor

save project

parent b4160fef
Showing with 22 additions and 17 deletions
student1 = {'语文': 91, '数学': 88, '英语': 85} import turtle
student2 = {'语文': 97, '数学': 98, '英语': 90} screen=turtle.screen()
student3 = {'语文': 95, '数学': 100, '英语': 93} screen.bgcolor("light blue")
score = {'悟空': student1, '诺依': student2, '小贝': student3} pen=turtle.Pen()
while True: pen.penup()
print("输入名字查询p") pen.gpto(100,-100)
name = input("名字:") pen.write("hi")
print("as"*89) pen.hideturtle()
if name in score: pen1=turtle.Pen
score=score[name] pen1.pencolor("red")
for k,v in info.items(): pen1.pensize(5)
print(k,v) pen1.left(45)
elif name==p: pen1.forward(100)
break pen1.circle(50,180)
else: pen1.right(90)
print("fdvfhfdsasfgj") pen1.circle(50,180)
# 查询并打印出输入的名字对应的所有科目的成绩 pen1.forward(100)
pen1.forward(10)
pen1.hideturtle()
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