Commit 8a323f73 by BellCodeEditor

save project

parent 730aa887
Showing with 12 additions and 24 deletions
import turtle
turtle,penup()
turtle.goto(0,-200)
turtle.pendomn()
turtle.circle(200)
turtle.penup
turtle.goto(-100,50) score={"小明":92,"小红":98,"小亮":59,"小宁":65,"学霸":101,"笨蛋":1}
turtle.pendomn() k=input("请输入名字")
turtle.fillcolor("blue") v=input("请输入此次成绩")
turtle.begin_fill() if k in score:
turtle.circle(20) if int(v)>score[k]:
turtle.end_fill() score[k]=int(v)
turtle.penup() print("成绩已刷新")
else:
turtle.goto(0,50) print("成绩未被刷新")
turtle.pendomn() else:
turtle.circle(-50,steps=3) score[k]=int(v)
turtle.penup() print("您的成绩已上传")
turtle.goto(-150,-70)
turtle.pendomn()
turtle.goto(0,-170)
turtle.penup
\ 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